My CSV file looks
0.0 1 0.1 2 0.2 3 0.3 4 0.5 7 1.0 9 0.0 6 0.1 10 0.2 11 0.3 12 0.5 13 1.0 14 ...
and I want to draw the first column along the X axis, the second column along the Y axis. So, my code
import matplotlib.pyplot as plt from numpy import genfromtxt data=genfromtxt("test",names=['x','y']) ax=plt.subplot(111) ax.plot(data['x'],data['y']) plt.show()
But this connects the end point of the graph, showing a straight line, 
(source: tistory.com )
What I want is this graph. 
(source: tistory.com )
Then how do I read a data file or are there options for disconnecting a line in matplotlib?
source share