AxesAssembly.shaft_type#
- property AxesAssembly.shaft_type: str[source]#
Shaft type for all axes.
Must be a string, e.g.
'cylinder'or'cube'or any other supported geometry. Alternatively, any arbitrary 3-dimensionalpyvista.DataSetmay 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.
>>> axes_geometry_source = pv.AxesGeometrySource()
>>> axes_geometry_source.shaft_type
'cylinder'
>>> axes_geometry_source.shaft_type = 'cube'
>>> axes_geometry_source.shaft_type
'cube'
Set the shaft type to any 3-dimensional dataset.
>>> axes_geometry_source.shaft_type = pv.Superquadric()
>>> axes_geometry_source.shaft_type
'custom'