offset_copy in transforms.py... Gone?

Hi Michael,

···

---------- Forwarded message ----------
From: Andrea Gavana <andrea.gavana@...287...>
Date: Jun 27, 2008 1:53 PM
Subject: Re: [Matplotlib-users] offset_copy in transforms.py... Gone?
To: Michael Droettboom <mdroe@...86...>

On 6/27/08, Michael Droettboom wrote:

Yes, this is one of the casualties of the transforms refactoring in 0.98.
The new transformation framework is documented here:

http://matplotlib.sourceforge.net/doc/html/devel/transformations.html

Most of the changes from 0.91 to 0.98 are documented here:

http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/API_CHANGES?view=markup

...but it seems offset_copy was overlooked (probably because no code
internal to matplotlib was using it.)

You can do something like this to simulate offset_copy:

return ax.transData + transforms.Affine2D().translate(x,
y)

Let me know if that works in your context. If not, I'm glad to help.

Thank you for the quick answer. I did some quick testing and
everything seems to work perfectly. Thank you again.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

--
Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/