On Fri, Aug 27, 2010 at 1:16 PM, Eric Firing <efir...@hawaii.edu> wrote: > On 08/27/2010 07:15 AM, Ryan May wrote: >> You can make the circle this way, specifying everything in axes coordinates: >> >> cp = patches.Circle((.5,.5),.025, transform=ax.transAxes) >> >> However, this puts the circle in the same spot in axes coordinates >> [(0.5,0.5) is the middle of the plot]. I'm not sure if that's what you >> want. I can't see any way to get Circle to use different transforms >> for the center and the size, so from here the only path forward I see >> is subclassing Circle. This way you could add code to the draw method >> to calculate the center in axes coordinates from the center in data >> coords. This needs to be done at draw time since the mapping of data >> coords->axes coords changes as you pan and zoom. > > A simpler alternative is to use a CircleCollection with a single member. > Collections allow separate transforms for the patch and the offset; > the latter determines the location of the center.
Why in the world didn't that occur to me? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users