views:

39

answers:

0

Hi all,

I'm working on some interactive plots using matplotlib and wx, and one of the features I've added is to show a particular subplot from a figure (with any number of other subplots) in a new figure so it has as much screen real-estate as possible. The code I've written so far works well enough to open a new plot with the figure and set xlim and ylim to the current limits of the original subplot so it is zoomed/panned to the same place as the original.

What I haven't be able to do yet is to populate the new nav toolbar with the views and positions stacks to get the back/forward/home buttons to work as if the new subplot had the same previous actions done to it as the plot it has been copied from.

I'd love to hear if anyone has any ideas on how this can be done.

Thanks -Adam