mne.viz.create_3d_figure#
- mne.viz.create_3d_figure(size, bgcolor=(0, 0, 0), smooth_shading=None, handle=None, *, scene=True, show=False)[source]#
Return an empty figure based on the current 3d backend.
Warning
Proceed with caution when the renderer object is returned (with
scene=False) because the _Renderer API is not necessarily stable enough for production, it’s still actively in development.- Parameters:
- size
tuple The dimensions of the 3d figure (width, height).
- bgcolor
tuple The color of the background.
- smooth_shading
bool|None Whether to enable smooth shading. If
None, uses the config valueMNE_3D_OPTION_SMOOTH_SHADING. Defaults toNone.- handle
int|None The figure identifier.
- scene
bool If True (default), the returned object is the Figure3D. If False, an advanced, undocumented Renderer object is returned (the API is not stable or documented, so this is not recommended).
- show
bool If True, show the renderer immediately.
New in version 1.0.
- size
- Returns:
- figureinstance of
Figure3DorRenderer The requested empty figure or renderer, depending on
scene.
- figureinstance of
Examples using mne.viz.create_3d_figure#
The role of dipole orientations in distributed source localization