Re: [matplotlib-devel] offset_copy()

2008-07-21 Thread Michael Droettboom
The solution is sufficiently obscure, that I decided to just re-introduce offset_copy (r5804). It appears to work as before, and the example works without changes, though let me know if you run into any snags. Cheers, Mike Michael Droettboom wrote: > I'll update the example. You may also find

Re: [matplotlib-devel] offset_copy()

2008-07-21 Thread Michael Droettboom
I'll update the example. You may also find ScaledTranlation useful for what you're doing. It will allow you to avoid hardcoding the dpi. http://matplotlib.sourceforge.net/doc/html/devel/transformations.html#matplotlib.transforms.ScaledTranslation Cheers, Mike Andrew Straw wrote: > Ryan May wr

Re: [matplotlib-devel] offset_copy()

2008-07-21 Thread Andrew Straw
Ryan May wrote: > Hi, > > I noticed that offset_copy() went away in the transforms rewrite and was > replaced with a trans + transfroms.Affine2D().translate(x,y). This > works fine for x,y in pixels. However, offset_copy would also let you > specify x,y in points. How can I get that to work

Re: [matplotlib-devel] offset_copy()

2008-07-20 Thread John Hunter
On Sun, Jul 20, 2008 at 3:44 PM, Ryan May <[EMAIL PROTECTED]> wrote: > I noticed that offset_copy() went away in the transforms rewrite and was > replaced with a trans + transfroms.Affine2D().translate(x,y). This > works fine for x,y in pixels. However, offset_copy would also let you > specify x

[matplotlib-devel] offset_copy()

2008-07-20 Thread Ryan May
Hi, I noticed that offset_copy() went away in the transforms rewrite and was replaced with a trans + transfroms.Affine2D().translate(x,y). This works fine for x,y in pixels. However, offset_copy would also let you specify x,y in points. How can I get that to work with the new transforms? Mo