mne.viz.clear_3d_figure#

mne.viz.clear_3d_figure(figure)[source]#

Remove all actors from the given scene.

The scene itself is kept open, so it can be reused for another plot. This is much cheaper than closing the scene and creating a new one, and it keeps memory usage constant when many scenes are plotted in a loop.

Parameters:
figureobject

The scene which needs to be cleared.

Notes

New in v1.13.

Examples using mne.viz.clear_3d_figure#

Plotting sensor layouts of EEG systems

Plotting sensor layouts of EEG systems