title: Python - Plot function over a range PYPLOT
body: <p>If I have a function</p>
  
  <pre><code>def function(self, x, A, B)
     ......
  </code></pre>
  
  <p>How can I plot a continuous graph of it over a range of say x=[0,150000] (A/B are constants and can be changed on each call).  </p>
  
  <p>Even discrete values is fine.  However it is inefficient to make a list of all function values then plot each one?</p>