On Thu, May 29, 2008 at 1:52 PM, Eric Firing <[EMAIL PROTECTED]> wrote:

> To what bug do you refer?  There seem to be related zoom-to-rect bugs in
> both the trunk and the branch.  In both, zooming in to a region comparable
> to, or smaller than, a "pixel" (meaning a grid cell in the data array), gets
> unbearably slow.  In the branch, it has the additional characteristic of
> fading out.  I think this bug may be inherent in Agg, and has been around
> indefinitely.

Yes, this is a problem in either the _image or _backend_agg
implementation, not agg itself, and should be fixed.

But I was referring to a different problem.  In the thread:
"[Matplotlib-users] matploblib communication problem, graphics
question" I wrote about a zoom to rect bug (I'll paste the relevant
bit below), but for the life of me I can't replicate it on my machine
here (TkAgg).  I'll have to test at home on wxagg on OSX which is
where I was having the problems:

Here was the OP:

In testing this stuff, I found a bug bug in image handling on the
trunk -- if you zoom to part of an image with zoom-to-rect, the part
that you get zoomed to is not the part you select.  This is most
apparent if you load an image with easily recognizable features, eg a
picture of a person.  This problem is on the trunk but not the branch
-- here is some example code:

In [8]: fig = plt.figure()

In [9]: ax = fig.add_subplot(111)

In [10]: ax.set_aspect('auto')

In [11]: X = imread('/Users/jdhunter/Desktop/IMG_0907.JPG')

In [12]: ax.imshow(X, origin='lower', aspect='auto')
Out[12]: <matplotlib.image.AxesImage object at 0x112586b0>

In [13]: ax.figure.canvas.draw()

In [14]: ax.cla()

In [15]: ax.set_aspect('auto')

In [16]: ax.imshow(X, origin='upper', aspect='auto')
Out[16]: <matplotlib.image.AxesImage object at 0x11258690>

In [17]: fig.canvas.draw()

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to