pyvista.themes._AxesConfig

class _AxesConfig

PyVista axes configuration.

Examples

Set the x axis color to black.

>>> import pyvista
>>> pyvista.global_theme.axes.x_color = 'black'

Show axes by default.

>>> pyvista.global_theme.axes.show = True

Use the vtk.vtkCubeAxesActor.

>>> pyvista.global_theme.axes.box = True

Methods

_AxesConfig.from_dict(dict_)

Create from a dictionary.

_AxesConfig.to_dict()

Return theme config parameters as a dictionary.

Attributes

_AxesConfig.box

Use the vtk.vtkCubeAxesActor instead of the default vtk.vtkAxesActor.

_AxesConfig.show

Show or hide the axes actor.

_AxesConfig.x_color

Return or set x axis color.

_AxesConfig.y_color

Return or set y axis color.

_AxesConfig.z_color

Return or set z axis color.