On 2/21/2010 10:29 AM, Wayne Watson wrote:
> plot(2.8,3.4) doesn't work in my program
>    

Why should it?
Plot takes once or two *sequences* of numbers as arguments.

> plot([2.8],[3.4]) does work
>    

Well yes, that is two sequences.

> plot((2.8,3.4)) apparently creates two points
>    

Yes, if you only provide one sequence,
it is treated as the ordinates (i.e., second coordinates),
and the abscissas are generated for you.

See the examples in the documentation:
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.plot

Alan Isaac


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to