Re: [Matplotlib-users] Fixed patch relative to axes

2009-05-01 Thread Thomas Robitaille
Thanks! Thomas On 1 May 2009, at 15:04, Eric Firing wrote: > Christopher Barker wrote: >> Eric Firing wrote: >>> Split the command up: >>> p = Circle(...) >>> ax.add_patch(p, ...) >>> >>> (add_* could be modified to return the reference; maybe this would >>> be >>> worthwhile.) >> >> +1 >> >>

Re: [Matplotlib-users] Fixed patch relative to axes

2009-05-01 Thread Eric Firing
Christopher Barker wrote: > Eric Firing wrote: >> Split the command up: >> p = Circle(...) >> ax.add_patch(p, ...) >> >> (add_* could be modified to return the reference; maybe this would be >> worthwhile.) > > +1 > > > Done in r7077. Eric ---

Re: [Matplotlib-users] Fixed patch relative to axes

2009-04-30 Thread Christopher Barker
Eric Firing wrote: > Split the command up: > p = Circle(...) > ax.add_patch(p, ...) > > (add_* could be modified to return the reference; maybe this would be > worthwhile.) +1 -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 vo

Re: [Matplotlib-users] Fixed patch relative to axes

2009-04-29 Thread Eric Firing
Thomas Robitaille wrote: > Thanks! > > Is there an easy way to keep a reference to patches? I notice that for > example > > p = ax.add_patch(Circle((0.5,0.5),radius=0.5)) > > does not work (p is not a reference to the patch). Is there a way to > keep a reference so I can update the properties

Re: [Matplotlib-users] Fixed patch relative to axes

2009-04-29 Thread Thomas Robitaille
Thanks! Is there an easy way to keep a reference to patches? I notice that for example p = ax.add_patch(Circle((0.5,0.5),radius=0.5)) does not work (p is not a reference to the patch). Is there a way to keep a reference so I can update the properties of the patch at a later time? Cheers,

Re: [Matplotlib-users] Fixed patch relative to axes

2009-04-29 Thread Eric Firing
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

[Matplotlib-users] Fixed patch relative to axes

2009-04-29 Thread Thomas Robitaille
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