Re: [Matplotlib-users] Rotating in imshow

2009-03-17 Thread Michael Droettboom
Just getting back to work after an illness... Eric's assessment is 100% correct: the transform kwarg is ignored by images. It probably could be, but it would not be trivial, particularly in the way the Agg backend is currently architected. This should probably be added as a feature request to

Re: [Matplotlib-users] Rotating in imshow

2009-03-13 Thread Eric Firing
Thomas Robitaille wrote: >>> It looks like rotation/translation should be easy to do with >>> Affine2D, so I tried using it, but I can't seem to get it to work as >>> expected - here is an example of how I am using it: >> >> Based on a quick look at image.py and _image.cpp, it appears that >> th

Re: [Matplotlib-users] Rotating in imshow

2009-03-13 Thread Thomas Robitaille
>> It looks like rotation/translation should be easy to do with >> Affine2D, so I tried using it, but I can't seem to get it to work >> as expected - here is an example of how I am using it: > > Based on a quick look at image.py and _image.cpp, it appears that > there is a low-level capabilit

Re: [Matplotlib-users] Rotating in imshow

2009-03-13 Thread Eric Firing
Thomas Robitaille wrote: > It looks like rotation/translation should be easy to do with Affine2D, > so I tried using it, but I can't seem to get it to work as expected - > here is an example of how I am using it: Based on a quick look at image.py and _image.cpp, it appears that there is a low-l

Re: [Matplotlib-users] Rotating in imshow

2009-03-13 Thread Thomas Robitaille
Thanks to both of you for your help! I had spotted the transform argument in imshow, but didn't manage to find any information about how to use it. The Affine2D method looks like it will help, so I should be all set now. Thanks! Thomas On Mar 13, 2009, at 5:20 PM, Andrew Straw wrote: > Er

Re: [Matplotlib-users] Rotating in imshow

2009-03-13 Thread Thomas Robitaille
It looks like rotation/translation should be easy to do with Affine2D, so I tried using it, but I can't seem to get it to work as expected - here is an example of how I am using it: import numpy as np from matplotlib.pyplot import * from matplotlib.transforms import Affine2D im = np.random.ra

Re: [Matplotlib-users] Rotating in imshow

2009-03-13 Thread Andrew Straw
Eric Firing wrote: > Thomas Robitaille wrote: >> Hello, >> >> I was wondering whether there is a way to rotate a grayscale/ >> colorscale when using imshow. >> >> I have been using PGPLOT (a fortran/c plotting library) for many years >> now, and the equivalent to imshow is called PGGRAY (or PGIM

Re: [Matplotlib-users] Rotating in imshow

2009-03-13 Thread Eric Firing
Thomas Robitaille wrote: > Hello, > > I was wondering whether there is a way to rotate a grayscale/ > colorscale when using imshow. > > I have been using PGPLOT (a fortran/c plotting library) for many years > now, and the equivalent to imshow is called PGGRAY (or PGIMAG). One of > the argume

[Matplotlib-users] Rotating in imshow

2009-03-13 Thread Thomas Robitaille
Hello, I was wondering whether there is a way to rotate a grayscale/ colorscale when using imshow. I have been using PGPLOT (a fortran/c plotting library) for many years now, and the equivalent to imshow is called PGGRAY (or PGIMAG). One of the arguments this function takes is a 6-element ar