Zoom event assigned to a Push button in QT

Good afternoon

I'm working in an application with a simple figure embbebed in a QT
Dialog. I want to instead of use the navigation toolbar of matplotlib,
have some Qt push buttons in the form, that allow to perform the Zoom
and Pan. Is it possible to do it?

Many thanks for your help

German

Yes, I believe so. I believe it is possible to create the axes with navigation disabled so that their callbacks are never connected. Then, you can use the same callback system to trigger the axes pan and zoom on your own controls.

http://matplotlib.sourceforge.net/users/event_handling.html
http://matplotlib.sourceforge.net/api/axes_api.html

(particularly about disconnect() and drag_pan() and friends).

Maybe someone else knows of an example?

Ben Root

···

On Thu, Jul 8, 2010 at 4:55 PM, German Ocampo <gerocampo@…287…> wrote:

Good afternoon

I’m working in an application with a simple figure embbebed in a QT

Dialog. I want to instead of use the navigation toolbar of matplotlib,

have some Qt push buttons in the form, that allow to perform the Zoom

and Pan. Is it possible to do it?

Many thanks for your help

German


This SF.net email is sponsored by Sprint

What will you do first with EVO, the first 4G phone?

Visit sprint.com/firsthttp://p.sf.net/sfu/sprint-com-first


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users