A good reminder to check that site out.   There is alsoTreeMap, which uses 
coloured rectangles.  http://www.scipy.org/TreeMap





Jessica Lu <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
20/12/2007 05:30 AM

To

cc
Bryan Fodness <[EMAIL PROTECTED]>, matplotlib 
<matplotlib-users@lists.sourceforge.net>
Subject
Re: [Matplotlib-users] drawing a box






There is an example of this on the scipy matplotlib cookbook:

http://www.scipy.org/Cookbook/Matplotlib/ShadedRegions

Cheers,
Jessica

On Dec 18, 2007, at 7:58 PM, John Hunter wrote:

> 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
>


-------------------------------------------------------------------------
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

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________



UNITED GROUP
This email message is the property of United Group. The information in this 
email is confidential and may be legally privileged. It is intended solely for 
the addressee. Access to this email by anyone else is unauthorised. If you are 
not the intended recipient, you may not disclose, copy or distribute this 
email, nor take or omit to take any action in reliance on it. United Group 
accepts no liability for any damage caused by this email or any attachments due 
to viruses, interference, interception, corruption or unauthorised access.
If you have received this email in error, please notify United Group 
immediately by email to the sender's email address and delete this document.
-------------------------------------------------------------------------
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