Skip to content

Instantly share code, notes, and snippets.

@sungyongchoi
Last active February 5, 2016 04:27
Show Gist options
  • Save sungyongchoi/ebeab5e3c2ee743db8f3 to your computer and use it in GitHub Desktop.
Save sungyongchoi/ebeab5e3c2ee743db8f3 to your computer and use it in GitHub Desktop.
Draw X,Z coordinates value throu MatPlotLib
import matplotlib.pyplot as plt
import csv
x=[]
z=[]
f= open("data.csv")
#append values to list
for row in csv.reader(f):
x.append(row[0])
z.append(row[1])
plt.plot(x, z, 'r.')
plt.axis([-1, 30, -5,1 ])
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment