zoom rectangles and redraw

Hi,

there is something weird going on when zooming
(matplotlib.__version__: '0.85.cvs').
If I do

from pylab import *
x=arange(0.0,10.0,0.01)
plot(x,sin(x**2))
show()

and then choose the "zoom to rect mode"
it is possible to create, one after another,
several zoom boxes which are all visible and the interiour is not
updated, while the axes ranges are.
(Moving the mouse outside of the window with the figure
will update the plot.)

This seems to happen reproducibly,
when one zooms in such a way that
one release button1 while still dragging.
To be clear (hopfully):
one clicks with button1, keeps it pressed
and moves the mouse. While moving one releases button1
but continues moving.

Somehow the redraw for the inside is not issued
when the mouse is still moving but the button already released.
(Note that this is not an artificial problem, but
does happen a lot).

Is this behaviour reproducible on other systems/platforms
(I am running this on debian sarge with the default backend)?

Best, Arnd

Arnd Baecker wrote:

To be clear (hopfully):
one clicks with button1, keeps it pressed
and moves the mouse. While moving one releases button1
but continues moving.

Confirmed here with matplotlib 0.84, GTKAgg backend, Fedora Core 4. Maybe the solution is simple: stop the mouse before releasing the button :slight_smile:

"Doctor, it hurts when I do this." "Well don't do that."

For me that directly translates into "zooming hurts" ;-).

Actually, it took us quite a while to find out in
which situation the problem occurs.
How often it happens does depend on the way the user
interacts with the mouse, but:
Any tiny movement of the mouse while releasing the left mouse
button will have the same effect.

Best, Arnd

ยทยทยท

On Sun, 30 Oct 2005, Stephen Walton wrote:

Arnd Baecker wrote:

>To be clear (hopfully):
>one clicks with button1, keeps it pressed
>and moves the mouse. While moving one releases button1
>but continues moving.
>
>
Confirmed here with matplotlib 0.84, GTKAgg backend, Fedora Core 4.
Maybe the solution is simple: stop the mouse before releasing the
button :slight_smile:

"Doctor, it hurts when I do this." "Well don't do that."