Как легко изменить навигационную панель инструментов в окне рисунка matplotlib?
Можно ли сделать что-то вроде следующего, чтобы изменить панель инструментов навигации в matplotlib?
Generate a figure window, with:fig = figure()
Get a reference of the navigation tool-bar, with: tbar = fig.get_navigation_toolbar()
,
or better yet, just by: tbar = fig.navtbar
Modify the tool-bar through the reference tbar
, such as delete/add/edit a button with something like this:tbar.add_button(<a Button object>);
tbar.remove_button(a reference to a button);
tbar.edit_button(a reference to a button);
Update the figure with:
fig.canvas.draw()
Большое спасибо.