pyvista.Plotter.scalar_bars#

property Plotter.scalar_bars[source]#

Scalar bars.

Returns:
pyvista.ScalarBars

Scalar bar object.

Examples

>>> import pyvista as pv
>>> sphere = pv.Sphere()
>>> sphere['Data'] = sphere.points[:, 2]
>>> plotter = pv.Plotter()
>>> _ = plotter.add_mesh(sphere)
>>> plotter.scalar_bars
Scalar Bar Title     Interactive
"Data"               False

Select a scalar bar actor based on the title of the bar.

>>> plotter.scalar_bars['Data']
<vtkmodules.vtkRenderingAnnotation.vtkScalarBarActor(...) at ...>
../../../_images/pyvista-Plotter-scalar_bars-1_00_00.png