update_scalars

Plotter.update_scalars(scalars, mesh=None, render=True)

Update scalars of an object in the plotter.

Parameters
scalarsnp.ndarray

Scalars to replace existing scalars.

meshvtk.PolyData or vtk.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.