title: Why am I getting a syntax error when using plot?
body: <p>I am plotting a function, and this is my code:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  from pylab import log,xlabel,ylabel,title
  
  u = 2510.
  M = 2.8*(10**6)
  m = 13.3*(10**3)
  g = 9.81
  
  x = arange(0,30,0.005)
  v = (u*log(M/(M - (m*t))) - (g*t)     #Function v(t) I am plotting
  plt.plot(t,v)
  xlim(0,30)
  ylim(0,1000)
  xlabel("Time measured from liftoff (s)")
  ylabel("Velocity")
  title("Speed v Time for a rocket in vertical motion")
  plt.show()
  </code></pre>
  
  <p>I am getting a syntax error on </p>
  
  <pre><code>plt.plot(t,v)
  </code></pre>
  
  <p>Why is this? How can I rectify it?</p>