How to copy matplotlib figure?
- by Alex
I have FigureCanvasWxAgg instance with a figure displayed on a frame. If user clicks on the canvas another frame with a new FigureCanvasWxAgg containing the same figure will be shown. By now closing the new frame can result in destroying the C++ part of the figure so that it won't be available for the first frame.
How can I save the figure? Python deepcopy from copy module does't work in this case.
Thanks in advance.