set_scalars#

Surface.set_scalars(scalars: ndarray, scalar_name: str = 'scalars')[source]#

Sets/Updates the scalars of the surface. Scalars represent a color using a color map.

Parameters:
  • scalars (list) – Scalars should be the same size as the number of faces.

  • scalar_name (str) – The name of the scalar