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
Use a box axes orientation widget.
Show or hide the axes actor.
Return or set x-axis color.
Return or set y-axis color.
Return or set z-axis color.