modifying the toolbar?

Hi, I have just begun including the toolbar in an embedded (in wx)
use of mpl, and am really pleased with how easily it provides very
useful functions. Once again, mpl shines.

But I would like to try to modify the toolbar for my application, e.g.
probably remove the "configure subplots" tool (n/a in my context)
and in fact add a number of my own application-specific tools to
that same toolbar.

I didn't see any toolbar class within the widgets.py file in the
matplotlib directory. So, a) where can I find it, and b) is there
anything I should be aware of regarding modifying the toolbar?

Thanks,
Che

C M wrote:

Hi, I have just begun including the toolbar in an embedded (in wx)
use of mpl, and am really pleased with how easily it provides very
useful functions. Once again, mpl shines.

But I would like to try to modify the toolbar for my application, e.g.
probably remove the "configure subplots" tool (n/a in my context)
and in fact add a number of my own application-specific tools to
that same toolbar.

I didn't see any toolbar class within the widgets.py file in the
matplotlib directory. So, a) where can I find it, and b) is there
anything I should be aware of regarding modifying the toolbar?

Toolbar functionality starts in backend_bases.py and continues in the individual toolkit-specific backends, like backends/backend_wx.py. Configurability has been on the wish list for a while.

Have you looked at examples/user_interfaces/embedding_in_wx4.py? It does modify the default toolbar.

Eric

···

Thanks,
Che

------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Perfect, thank you.

Che

···

On Fri, Mar 27, 2009 at 1:56 AM, Eric Firing <efiring@...202...> wrote:

C M wrote:

Hi, I have just begun including the toolbar in an embedded (in wx)
use of mpl, and am really pleased with how easily it provides very
useful functions. Once again, mpl shines.

But I would like to try to modify the toolbar for my application, e.g.
probably remove the "configure subplots" tool (n/a in my context)
and in fact add a number of my own application-specific tools to
that same toolbar.

I didn't see any toolbar class within the widgets.py file in the
matplotlib directory. So, a) where can I find it, and b) is there
anything I should be aware of regarding modifying the toolbar?

Toolbar functionality starts in backend_bases.py and continues in the
individual toolkit-specific backends, like backends/backend_wx.py.
Configurability has been on the wish list for a while.

Have you looked at examples/user_interfaces/embedding_in_wx4.py? It does
modify the default toolbar.

Eric