AxesAssembly.shaft_type

Contents

AxesAssembly.shaft_type#

property AxesAssembly.shaft_type: str[source]#

Shaft type for all axes.

Must be a string, for example, 'cylinder' or 'cube' or any other supported geometry. Alternatively, any arbitrary 3-dimensional pyvista.DataSet may also be specified. In this case, the dataset must be oriented such that it “points” in the positive z direction.

Examples#

Download Python source code | Download Jupyter notebook

Show a list of all shaft type options.

>>> import pyvista as pv
>>> pv.AxesGeometrySource.GEOMETRY_TYPES
('cylinder', 'sphere', 'hemisphere', 'cone', 'pyramid', 'cube', 'octahedron')

Show the default shaft type and modify it.

Set the shaft type to any 3-dimensional dataset.