mne.viz.set_3d_backend¶
-
mne.viz.
set_3d_backend
(backend_name, verbose=None)[source]¶ Set the backend for MNE.
The backend will be set as specified and operations will use that backend.
- Parameters
- backend_name
str
The 3d backend to select. See Notes for the capabilities of each backend.
- verbosebool,
str
,int
, orNone
If not None, override default verbose level (see
mne.verbose()
and Logging documentation for more). If used, it should be passed as a keyword-argument only.
- backend_name
Notes
This table shows the capabilities of each backend (“✓” for full support, and “-” for partial support):
3D function:
mayavi
pyvista
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
3D feature:
Large data
✓
✓
Opacity/transparency
✓
✓
Support geometric glyph
✓
✓
Jupyter notebook
✓
✓
Interactivity in Jupyter notebook
✓
✓
Smooth shading
✓
✓
Subplotting
✓
✓
Save offline movie
✓
✓
Point picking
✓
Note
In the case of
plot_vector_source_estimates
with PyVista, the glyph size is not consistent with Mayavi, it is also possible that a dark filter is visible on the mesh when depth peeling is not available.