pyvista.themes._AxesConfig#

class _AxesConfig[source]#

PyVista axes configuration.

Examples

Set the x axis color to black.

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

Show axes by default.

>>> pv.global_theme.axes.show = True

Use the vtk.vtkCubeAxesActor.

>>> pv.global_theme.axes.box = True

Methods

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.