|
From: Alan G I. <ala...@gm...> - 2010-02-21 15:45:30
|
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 |