[Matplotlib-announce] Bug in image.py module ?

This is a bug, I'll fix it. Thanks for the report.

Please do not post to matplotlib-announce. You should post to
matplotlib-users instead. matplotlib-announce is just for releases,



On Fri, Jan 16, 2009 at 3:12 PM, <pellegrini@...2454...> wrote:

Hello everybody,

I may have found a bug in the module image.py, class AxesImage, of
matplotlib 0.98.5.

The method 'get_interpolation' has been defined twice. The first time
it returns the attribute '_interpolation' (the right one). A few lines later,
the second definition returns the attribute '_resample' (the wrong one ?).

So, when you call 'get_interpolation' from an AxesImage instance such as
'imshow' it returns False instead of the proper interpolation scheme.

What do you think ?