title: Plotting data from CSV files using matplotlib
body: <p>My csv file looks</p>
  <pre><code>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
  
  ...
  </code></pre>
  <p>and I want to draw the first column in x axis, second column as y axis.
  So my code is</p>
  <pre><code>import matplotlib.pyplot as plt
  from numpy import genfromtxt
  data=genfromtxt(&quot;test&quot;,names=['x','y'])
  ax=plt.subplot(111)
  ax.plot(data['x'],data['y'])
  plt.show()
  </code></pre>
  <p>But this connect the end point of graph, showing straight line,
  <a href="https://i.stack.imgur.com/DAGIs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DAGIs.png" alt="graph" /></a><br />
  <sub>(source: <a href="http://cfile7.uf.tistory.com/image/24776F37554AD3670CECF8" rel="nofollow noreferrer">tistory.com</a>)</sub></p>
  <p>What I want is this graph.
  <a href="https://i.stack.imgur.com/4cZVR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4cZVR.png" alt="graph" /></a><br />
  <sub>(source: <a href="http://cfile7.uf.tistory.com/image/27372B49554AD4422EBD0F" rel="nofollow noreferrer">tistory.com</a>)</sub></p>
  <p>Then how do I read data file or are there any options in matplotlib disconnecting the line?</p>