pyvista.plotting.themes._AxesConfig#

class _AxesConfig[source]#

PyVista axes configuration.

Examples

Show the default axes configuration values.

>>> import pyvista as pv
>>> pv.global_theme.axes.x_color
Color(name='tomato', hex='#ff6347ff', opacity=255)
>>> pv.global_theme.axes.y_color
Color(name='seagreen', hex='#2e8b57ff', opacity=255)
>>> pv.global_theme.axes.z_color
Color(name='blue', hex='#0000ffff', opacity=255)
>>> pv.global_theme.axes.box
False
>>> pv.global_theme.axes.show
True

Set the x-axis color to black.

>>> pv.global_theme.axes.x_color = 'black'

Show the axes orientation widget by default.

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

Use the axes orientation box as the orientation widget.

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

Methods

Attributes

_AxesConfig.box

Use a box axes orientation widget.

_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.