Thomas Robitaille wrote: > Hi, > > Is there an easy way to draw a patch or a patchcollection such that it > always stays at the same relative position in a set of axes, rather > than at the same pixel position? So for example, I would want to plot > it at (0.1,0.1) relative to the axes, and if I zoom in I would still > want it to stay at (0.1,0.1)
With ipython -pylab: ax = gca() ax.fill([0.1, 0.2, 0.15], [0.1, 0.1, 0.15], transform=ax.transAxes) draw() then pan, zoom at will. Eric ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users