code: def addPointScalars(self, scalars, name):
          
          poly = self.polydata(False)
          if len(scalars) != poly.GetNumberOfPoints():
              colors.printc('~times pointScalars Error: Number of scalars != nr. of points',
                            len(scalars), poly.GetNumberOfPoints(), c=1)
              exit()
          arr = numpy_to_vtk(np.ascontiguousarray(scalars), deep=True)
          arr.SetName(name)
          poly.GetPointData().AddArray(arr)
          poly.GetPointData().SetActiveScalars(name)
          self.mapper.SetScalarRange(np.min(scalars), np.max(scalars))
          self.mapper.ScalarVisibilityOn()
          return self
docs: Add point scalars to the actor's polydata assigning it a name.
  
          .. hint:: |mesh_coloring| |mesh_coloring.py|_