is there a way to modify the toolbars in matplotlib and add more functions?

is there a way to modify the toolbars in matplotlib and add more functions, like a button for averaging the data displayed then display it; draw threshold levels and have a spin up button to change the level while drawing it?

To accomplish similar goals, I embed a matplotlib panel (including
toolbar) in a wxPython application (and use the 'WXAgg' backend).
Additional GUI elements (menus, controls etc.) can be added around the
matplotlib panel for all the additional functionality you might need.

With wxPython, the NavigationalToolbar object could easily be subclassed
and additional elements added, if need be.

You could equally well do this using an alternative toolkit-of-choice
(Tk, gtk, Qt etc.).

See the "embedding_in_*.py" files from the matplotlib examples set.

Bryan

···

On Wed, 2006-05-24 at 17:39 +0800, Allan Noriel Estrella wrote:

is there a way to modify the toolbars in matplotlib and add more
functions, like a button for averaging the data displayed then display
it; draw threshold levels and have a spin up button to change the
level while drawing it?

Bryan Cole wrote:

To accomplish similar goals, I embed a matplotlib panel (including
toolbar) in a wxPython application

If you do this, be sure to take a look at wxmpl and/or Mplot , they make it a bit easier to embed MPL in wxPython.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...