edifice.components.plotting.Figure.will_unmount

Figure.will_unmount()[source]

Callback function that is called when the component will unmount.

Override if you need to clean up some state, e.g. stop a timer, close a file.