|
From: Jianbao T. <jia...@gm...> - 2012-10-02 18:08:56
|
Is it possible to do something like the following to modify the navigation
toolbar in matplotlib?
1. Generate a figure window, such as by *fig = figure()*
2. Get a reference of the navigation toolbar, such as by *tbar =
fig.get_navigation_toolbar()* or better yet, just by *tbar = fig.navtbar*
3. Modify the toolbar through the reference *tbar*, such as
delete/add/edit a button by something like this: *tbar.add_button()*,
*tbar.remove_button(a reference to a button)*, *tbar.edit_button(a
reference to a button)*.
4. Update the figure by *fig.canvas.draw()*
Thank you very much.
|