pyvista.AxesActor.labels

Contents

pyvista.AxesActor.labels#

property AxesActor.labels: tuple[str, str, str][source]#

Return or set the axes labels.

This property may be used as an alternative to using x_axis_label, y_axis_label, and z_axis_label separately.

Added in version 0.44.0.

Examples

>>> import pyvista as pv
>>> axes_actor = pv.AxesActor()
>>> axes_actor.labels = ['X Axis', 'Y Axis', 'Z Axis']
>>> axes_actor.labels
('X Axis', 'Y Axis', 'Z Axis')