pyvista.themes.DarkTheme#
- class DarkTheme[source]#
Dark mode theme.
Black background, “viridis” colormap, tan meshes, white (hidden) edges.
Examples
Make the dark theme the global default.
>>> import pyvista >>> from pyvista import themes >>> pyvista.set_plot_theme(themes.DarkTheme())
Alternatively, set via a string.
>>> pyvista.set_plot_theme('dark')
Methods
DarkTheme.from_dict
(dict_)Create from a dictionary.
DarkTheme.load_theme
(theme)Overwrite the current theme with a theme.
Restore the theme defaults.
DarkTheme.save
(filename)Serialize this theme to a json file.
Return theme config parameters as a dictionary.
Attributes
Enable or disable anti-aliasing.
Automatically close the figures when finished plotting.
Return or set the default
axes
configuration.Return or set the default background color of pyvista plots.
Return or set the default camera position.
Return or set the default colormap of pyvista.
Return or set the default color of meshes in pyvista.
Return or set the default parameters of a horizontal colorbar.
Return or set the default colorbar orientation.
Return or set the default parameters of a vertical colorbar.
Return or set the default depth peeling parameters.
Return or set the default edge color.
Enable the camera orientation widget in all plotters.
Return or set the default floor color.
Return or set the default font size, family, and/or color.
Return if figures are shown in full screen.
Return or set hidden line removal.
Return or set the default
interactive
parameter.Return or set the jupyter notebook plotting backend.
Return or set the default
lighting
.Return or set the default
multi_rendering_splitting_position
parameter.Return or set the default
multi_samples
parameter.Return or set the name of the theme.
Return or set the default NaN color.
Return or set the state of notebook plotting.
Return or set the default outline color.
Return or set the default
render_points_as_spheres
parameter.Return or set the default behavior of returning the camera position.
Return or set the default edge visibility.
Return or set the default color bar visibility.
Return or set the default
silhouette
configuration.Return the default slider style configurations.
Return or set the default
smooth_shading
parameter.Return or set the default
title
parameter.Return or set the default
transparent_background
parameter.Set or return the usage of "ipyvtk" as a jupyter backend.
Return or set the default
volume_mapper
parameter.Return or set the default render window size.