On Fri, Feb 26, 2010 at 9:47 AM, mikey wrote:
> Hi there,
>
> Just wondering if anyone knows how to do a pixel offset in matplotlib?
>
> I've tried running the example in
> http://www.scipy.org/Cookbook/Matplotlib/Transformations#line-58 but
There is an "official" transformations tutorial now in
offset_copy is still available, but unfortunately doesn't work with the
cookbook example because of a bug that was inadvertently introduced into
matplotlib.
The bug is that offset_copy should have been defined as:
def offset_copy(trans, fig=None, x=0.0, y=0.0, units='inches'):
instead of:
Hi there,
Just wondering if anyone knows how to do a pixel offset in matplotlib?
I've tried running the example in
http://www.scipy.org/Cookbook/Matplotlib/Transformations#line-58 but
it appears to have been trashed by changes to the api. The functions
in the no-offset_copy function version don't