update_scalars#
- Plotter.update_scalars(scalars, mesh=None, render=True)#
Update scalars of an object in the plotter.
- Parameters
- scalars
np.ndarray
Scalars to replace existing scalars.
- mesh
vtk.PolyData
orvtk.UnstructuredGrid
,optional
Object that has already been added to the Plotter. If None, uses last added mesh.
- renderbool,
optional
Force a render when True. Default
True
.
- scalars