pyvista.AxesAssemblySymmetric.x_label

pyvista.AxesAssemblySymmetric.x_label#

property AxesAssemblySymmetric.x_label: tuple[str, str][source]#

Return or set the labels for the positive and negative x-axis.

The labels may be set with a single string or two strings. If a single string, plus '+' and minus '-' characters are added. Alternatively, set the labels with labels.

Examples

Set the labels with a single string. Plus '+' and minus '-' characters are added automatically.

>>> import pyvista as pv
>>> axes_assembly = pv.AxesAssemblySymmetric()
>>> axes_assembly.x_label = 'Axis'
>>> axes_assembly.x_label
('+Axis', '-Axis')

Set the labels explicitly with two strings.

>>> axes_assembly.x_label = 'anterior', 'posterior'
>>> axes_assembly.x_label
('anterior', 'posterior')