---------- Forwarded message ---------- From: Andrea Gavana <[EMAIL PROTECTED]> Date: Jun 27, 2008 1:53 PM Subject: Re: [Matplotlib-users] offset_copy in transforms.py... Gone? To: Michael Droettboom <[EMAIL PROTECTED]>
Hi Michael, 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/ ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users