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.
On 21 February 2010 15:44, Alan G Isaac wrote:
On 2/21/2010 10:29 AM, Wayne Watson wrote: