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 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 with the new 
>> transforms? More importantly, can I do it without knowing the dpi?
>>     
>
> Also, it looks like examples/pylab_examples/transoffset.py is broken...
>
> (I think more and more we need to automatically run the examples and
> compare against "known good" images in svn as a form of automated testing.)
>
> -Andrew
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>   


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to