Last active
February 5, 2016 04:27
-
-
Save sungyongchoi/ebeab5e3c2ee743db8f3 to your computer and use it in GitHub Desktop.
Draw X,Z coordinates value throu MatPlotLib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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