On Dec 18, 2007 9:47 PM, Bryan Fodness <[EMAIL PROTECTED]> wrote:
> I do want a rectangle.  And, I have tried,
>
> axvline(x=x1, ymin=y1, ymax=y2)
> axvline(x=x2, ymin=y1, ymax=y2)
> axhline(y=y1, xmin=x1, xmax=x2)
> axhline(y=y2, xmin=x1, xmax=x2)
>

You can either use the plot function "fill"


In [1]: xs = [0, 0, 1, 1]

In [2]: ys = [0, 2, 2, 0]

In [3]: fill(xs, ys)
Out[3]: [<matplotlib.patches.Polygon instance at 0x23d86e8>]

or create a matplotlib.patches.Rectangle instance, eg
http://matplotlib.sf.net/examples/alignment_test.py

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to