|
From: Andrea G. <and...@gm...> - 2010-02-21 15:52:49
|
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/ |