Thanks for pointing this out.  It is now fixed (and I added your example 
as a regression test).

Mike

On 08/01/2010 10:49 PM, Jae-Joon Lee wrote:
> Michael,
>
> In your commit 8585, you added an extra apply_translation command in
> the make_image function (line 594 of image.py, note that there is
> another one at line 599).
>
> Currently, imshow command places image in wrong place (except when
> interpolation is nearest ) and I think this is because of the extra
> translation.
>
> Tor reproduce the problem,
>
> import numpy as np
> import matplotlib.pyplot as plt
>
> arr = np.arange(100).reshape((10, 10))
> plt.imshow(arr, interpolation="bilinear", extent=(1,2,1,2))
> plt.xlim(0,3)
> plt.ylim(0,3)
> plt.show()
>
> The image are not at what it meant to be.
>
> Removing one of the translation solves the problem. And I guess that
> line is there by mistake?
> Can you check this and commit the fix if possible.
>
> Regards,
>
> -JJ
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>    


-- 
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to