pyvista.Plotter.update_scalars#

Plotter.update_scalars(scalars, mesh=None, render=True)[source]#

Update scalars of an object in the plotter.

Parameters:
scalarssequence

Scalars to replace existing scalars.

meshvtk.PolyData | vtk.UnstructuredGrid, optional

Object that has already been added to the Plotter. If None, uses last added mesh.

renderbool, default: True

Force a render when True.