Hello @PauloKanda, this doesn’t answer your question (sorry), but: the PyQt5 Matplotlib backend seems to work best for our interactive figures, and we recommend using it if possible.
Thank you for the suggestion. Unfortunately I´ve already written 6622 lines of code in tkinter (to this specific app). Consequently, I will be waiting for the light of a lighthouse to guide me.
best regards
Hello, it’s only now that I’m realizing you asked about plot_alignment and not (as I read) plot_sensors I don’t think there’s a way to do what you’re trying to achieve, then, and I don’t think there will be in the foreseeable future. @GuillaumeFavelier, WDYT?
This is just a small issue, no problem at all. I’m learning a lot with mne. Thanks for your kindness and for sharing your amazing tool.
best
Paulo Kanda
MNE-Python currently works with two 3D backends: mayavi and pyvista. pyvista uses Qt for its GUI / window management. Mayavi uses vtk, though it has a guide for integrating it into other interactive apps (see here). If you really need this, your best bet is probably to tell MNE-Python to use the mayavi backend (mne.viz.set_3d_backend('mayavi')), and then work through Mayavi’s integration guide linked above. I don’t know if it will work with tkinter; they only give examples for wxpython and Qt.