Plotter.remove_scalar_bar(title=None, render=True)[source]#

Remove a scalar bar.

titlestr, optional

Title of the scalar bar to remove. Required if there is more than one scalar bar.

renderbool, optional

Render upon scalar bar removal. Set this to False to stop the render window from rendering when a scalar bar is removed.


Remove a scalar bar from a plotter.

>>> import pyvista as pv
>>> mesh = pv.Sphere()
>>> mesh['data'] = mesh.points[:, 2]
>>> pl = pv.Plotter()
>>> _ = pl.add_mesh(mesh, cmap='coolwarm')
>>> pl.remove_scalar_bar()