Re: [matplotlib-devel] Affine Transformations on images

2011-07-14 Thread Michael Droettboom
On 07/14/2011 07:33 AM, Martin Teichmann wrote: > Hello List, > Hello Michael, Hello Jae-Joon, > > Michale wrote: >> It looks like overriding "draw_unsampled_image" is the wrong thing to do >> here, though. > JJ wrote: >> Overriding this behavior (which I guess is the case of you current ShearImage

Re: [matplotlib-devel] Affine Transformations on images

2011-07-14 Thread Martin Teichmann
Hello List, Hello Michael, Hello Jae-Joon, Michale wrote: > It looks like overriding "draw_unsampled_image" is the wrong thing to do > here, though. JJ wrote: > Overriding this behavior (which I guess is the case of you current ShearImage > implementation. Please correct me if I'm wrong) won't be

Re: [matplotlib-devel] Affine Transformations on images

2011-07-13 Thread Michael Droettboom
I'm starting to get a better sense of the code now. One of the features of the current implementation is that images are resampled before going into the output of the vector backends, so that we can a) control file size and b) control the interpolation algorithm used. It looks like that separ

Re: [matplotlib-devel] Affine Transformations on images

2011-07-13 Thread Jae-Joon Lee
On Tue, Jul 12, 2011 at 7:01 PM, Martin Teichmann wrote: > (There were some quirks to get sheard images on some backends, > see examples/api/demo_affine_image.py, but it worked on some backends > only). I didn't have time to go through your code carefully, but my understanding is that you rely on

Re: [matplotlib-devel] Affine Transformations on images

2011-07-13 Thread Martin Teichmann
Dear List, dear Michael, > Looks good.  Does matplotlib still pass all regression tests with this > change? It does pass all regression tests that were passed with the git version I started with. (There were 10 failures which are still there). In the meantime, I also wrote a class that already u

Re: [matplotlib-devel] Affine Transformations on images

2011-07-06 Thread Michael Droettboom
Looks good. Does matplotlib still pass all regression tests with this change? (See here for information on running the regression tests: http://matplotlib.sourceforge.net/devel/coding_guide.html?highlight=nosetests#testing). Cheers, Mike On 07/06/2011 08:33 AM, Martin Teichmann wrote: > Dear

[matplotlib-devel] Affine Transformations on images

2011-07-06 Thread Martin Teichmann
Dear list, I was just trying to shear an image to be plotted with matplotlib (to get some snazzy 3D effect) and realized that it's apparently not possible. Investigating further, I realized that the underlying agg library indeed supports shearing, as it simply uses an affine matrix for its transfo