On 21 February 2010 15:44, Alan G Isaac wrote:
> On 2/21/2010 10:29 AM, Wayne Watson wrote:
>> plot(2.8,3.4) doesn't work in my program
>>
>
> Why should it?

I believe it should.

> Plot takes once or two *sequences* of numbers as arguments.

I don't think it would be so complicated for the "plot" code to check
for the type of the input arguments and then create a list (or a
sequence) on the fly, i.e. (pseudo-code, untested):

if isinstance(x, types.IntType):
   x = [x]

The same apply for the second input.

As it appears to work in tools like Matlab, I don't see why MPL should
not support it. But then, I am no expert in MPL so it might be
difficult to do it for other reasons.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
http://thedoomedcity.blogspot.com/

------------------------------------------------------------------------------
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