Matplotlib Dynamic Drag Pan/Zoom

Hi all,

In a prior installation of matplotlib I recall being able to have real-time
pan/zoom plot update while dragging the mouse (not only after releasing the
left/right button).

I've just updated my Python and PyLab configurations and now matplotlib only
updates the plot after releasing the left/right button.

Can anyone point me to a possible solution for this issue?

Best regards,
Hugo Silva

···

--
View this message in context: http://old.nabble.com/Matplotlib-Dynamic-Drag-Pan-Zoom-tp32128170p32128170.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Hugo,

My only guess is that this may have been backend-specific. Which backend are you using now, and which version of matplotlib?

Ben Root

···

On Sun, Jul 24, 2011 at 6:03 PM, Hugo H. P. Silva <hugoslv@…287…> wrote:

Hi all,

In a prior installation of matplotlib I recall being able to have real-time

pan/zoom plot update while dragging the mouse (not only after releasing the

left/right button).

I’ve just updated my Python and PyLab configurations and now matplotlib only

updates the plot after releasing the left/right button.

Can anyone point me to a possible solution for this issue?

Best regards,

Hugo Silva

Hi Ben,

The matplotlib version is ‘‘1.0.1’’ and the backend is ‘‘MacOSX’’.

I’ve checked the backend using the ‘‘mpl.get_backend()’’ function as I couldn’t find ‘’.matplotlibrc’’ in my home folder.

Hugo Silva

···

On Jul 25, 2011, at 3:15 PM, Benjamin Root wrote:

On Sun, Jul 24, 2011 at 6:03 PM, Hugo H. P. Silva <hugoslv@…287…> wrote:

Hi all,

In a prior installation of matplotlib I recall being able to have real-time

pan/zoom plot update while dragging the mouse (not only after releasing the

left/right button).

I’ve just updated my Python and PyLab configurations and now matplotlib only

updates the plot after releasing the left/right button.

Can anyone point me to a possible solution for this issue?

Best regards,

Hugo Silva

Hugo,

My only guess is that this may have been backend-specific. Which backend are you using now, and which version of matplotlib?

Ben Root

After the tip from Ben Roots and a little tinkering with the matplotlib
backends I've solved this issue by changing the backend from the default
MacOSX to TkAgg.

BTW, the default matplotlibrc file in my case was located at:

/Library/Frameworks/Python.framework/Versions/X.X/lib/pythonX-X/site-packages/matplotlib/mpl-data/matplotlibrc

Thank's,
Hugo Silva

Hugo H. P. Silva wrote:

···

Hi all,

In a prior installation of matplotlib I recall being able to have
real-time pan/zoom plot update while dragging the mouse (not only after
releasing the left/right button).

I've just updated my Python and PyLab configurations and now matplotlib
only updates the plot after releasing the left/right button.

Can anyone point me to a possible solution for this issue?

Best regards,
Hugo Silva

--
View this message in context: http://old.nabble.com/Matplotlib-Dynamic-Drag-Pan-Zoom-tp32128170p32146578.html
Sent from the matplotlib - users mailing list archive at Nabble.com.