title: To plot 2 or 3 curves with time on x axis in a graph
body: <pre><code>import numpy as np
  
  import matplotlib.pyplot as plt
  
  import datetime
  
  def graph():
      time,value = np.loadtxt('location_file1.csv',delimiter=',', unpack=True, converter ={0: datetime.datetime(2016,10,12,'%H-%M-%S')}
      fig = plt.figure()
      plt.plot_time(x=time,y=value,fmt=':')
      plt.title('analysis')
      plt.ylabel('Velocity')
      plt.xlabel('time')
      plt.show()
  </code></pre>
  
  <p>Gives:</p>
  
  <pre><code>  File "&lt;ipython-input-4-4d3ced24fa3f&gt;", line 3
      fig = plt.figure()
        ^
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>`I want to plot the information that I have extracted from gps module. It's saved in a csv file consisting of velocity and time. I have the first 2 columns for the first day data and next two columns for the second day. I have to plot multiple curves in a graph. Need help...here is the file: <a href="http://i.stack.imgur.com/S9tiu.png" rel="nofollow">csv file of 2 days information</a></p>
  
  <p>dont really need the date.so i just gave a random date.i only need time on the x axis...but there is some error in the def of the graph</p>
  
  <p>I am using jupyter Qtconsole 4.1.1
  python 2.7.11
  IPython 4.0.3</p>