I am facing issues closing mayavi figures opened with the mne command mne.viz.plot_alignment. My system specs are those:
- MNE-Python version: 0.23.0
- operating system: linux/windows
I am working with ecog data and need to open a lot of different mayavi 3D plots, as many as I have participants, all within the same script. And because I haven’t figured out how to close them within a script, so many plots remain open and my computers end up freezing.
I am sure there must exist an easy command to close mayavi 3D figures, but none of the ones I could find in their documentation seems to work. Has anyone figured out a way to do so and if yes how?
PS: I haven’t included any code, ass it is a very simple issue: after calling the plot_alignment function, how do I close the generated figure. If you would like some code, I am happy to provide some.