On Mon, Feb 22, 2010 at 10:11 AM, Michael Droettboom <md...@stsci.edu> wrote: > 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.
In this example, though, he is not adding the Circle to the Axes via add_patch (so the transData transform is not set). Rather, he is using it to set the clip path http://matplotlib.sourceforge.net/examples/api/clippath_demo.html So I think Ryan's answer is correct. But David, if you want the clippath to be in data coordinates, you can set the transform yourself patch = patches.Circle((300,300), radius=100, transform=ax.transData) See the transformations tutorial for more about the coordinate systems and transformations http://matplotlib.sourceforge.net/users/transforms_tutorial.html JDH ------------------------------------------------------------------------------ Download Intel® 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