Re: [matplotlib-devel] noslice with interpolation 'nearest'

2010-06-26 Thread Eric Firing
On 06/26/2010 04:13 PM, Jae-Joon Lee wrote: > In r8472, I tried to modify the image slicing so that it works even if > images are rotated and skewed. And the "noslice" option is now gon. > Let me know if it causes any problem. Thanks very much, JJ, that's great! Eric > > Regards, > > -JJ --

Re: [matplotlib-devel] noslice with interpolation 'nearest'

2010-06-26 Thread Jae-Joon Lee
In r8472, I tried to modify the image slicing so that it works even if images are rotated and skewed. And the "noslice" option is now gon. Let me know if it causes any problem. Regards, -JJ On Tue, Jun 22, 2010 at 11:05 PM, Jae-Joon Lee wrote: > Eric, > > I should have left more comments about

Re: [matplotlib-devel] noslice with interpolation 'nearest'

2010-06-22 Thread Jae-Joon Lee
Eric, I should have left more comments about my change. The issue is that the current slicing algorithm sometimes fails with "_draw_unsampled_image" which support arbitrary affine transformation of the image. The slicing gets wrong when the image is significantly skewed or rotated. So, as a tempor

[matplotlib-devel] noslice with interpolation 'nearest'

2010-06-22 Thread Eric Firing
JJ, In AxesImageBase._draw_unsampled_image, there is a call to _get_unsampled_image(...noslice=True). When using imshow(Z, interpolation='nearest'), this defeats the slicing that makes such a difference when zooming and panning a small chunk of a large image. Changing it to False makes imshow