plotting single points, and texting vectors

While trying to create a series of labeled points, I noticed some inconsistent behavior in pylab.

It is not possible to plot a single point. For example:

plot (0.4,0.6,'+'); #fails

It is possible to work around this with:

text(0.4, 0.6,'+', horizontalalignment='center',verticalalignment='center')

but that seems to be counter to the philosophy that simple plots should be simple to make, and plotting commands should just work.

In a similar vein, it seems vectors could be added to text by allowing a user to plot a list of strings at an array of points.

These two additions would make is so one could either loop over a series of points, adding labels for each loop, or plot all the points and all the labels with two simple commands. Both seem like reasonable things to do, and both should be supported.

-Rob.

···

-----
Rob Hetland, Assistant Professor
Dept of Oceanography, Texas A&M University
p: 979-458-0096, f: 979-845-6331
e: hetland@...760..., w: http://pong.tamu.edu

Use lists.

hth,
Alan Isaac

···

On Mon, 7 Nov 2005, Robert Hetland apparently wrote:

It is not possible to plot a single point. For example:
plot (0.4,0.6,'+'); #fails