The coordinates for Circle (and all patches) are in data coordinates.  
So the (300, 300) is relative to the values in the data itself.  When 
adding a patch directly to a plot, however, the limits may not 
automatically update, so you may need to call axes.set_xlim or 
axes.set_ylim to adjust them to make the circle visible.

Mike

Ryan May wrote:
> On Wed, Feb 17, 2010 at 6:44 PM, David Arnold <dwarnol...@suddenlink.net> 
> wrote:
>   
>> All,
>>
>> I'm looking at:
>>
>> http://matplotlib.sourceforge.net/examples/api/clippath_demo.html
>>
>> But I cannot figure out:
>>
>> patch=patches.Circle((300, 300), radius=100)
>>
>> Where precisely is (300,300)?
>>     
>
> I believe it's in window coordinates (pixels), with 0,0 being the lower left.
>
> Ryan
>
>   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to