Toolbar in QT

Hi,
First I want to thanks for this amazing Matplotlib. It’s fantastic!

My newbie question is how I can show the (zoom, pan, etc) toolbar in embedding_in_qt.py example?

I have noticed that in animation_blit_qt.py the toolbar is available, but it seems to be done in a different way.

Appreciate your help!
Thank you,
/Ben

The toolbar is just a widget so you can do that the same way you
show any other widget in Qt. Something along the lines of:

···

build a widget

add a layout

add the figure widget to the layout

add the toolbar to the layout

connect them together (I forget exactly how but backend_qt.py
has all the code that does this)

From:
matplotlib-users-bounces@lists.sourceforge.net
[mailto:matplotlib-users-bounces@lists.sourceforge.net] On Behalf Of Behnam
Kamrani
Sent: Thursday, May 08, 2008 11:19 AM
To: matplotlib-users@lists.sourceforge.net
Subject: [Matplotlib-users] Toolbar in QT

Hi,
First I want to thanks for this amazing Matplotlib. It’s fantastic!

My newbie question is how I can show the (zoom, pan, etc) toolbar in
embedding_in_qt.py example?

I have noticed that in animation_blit_qt.py the toolbar is available, but it seems
to be done in a different way.

Appreciate your help!
Thank you,
/Ben