class_docstr: Displays an isosurface of a 3D scalar array.
  
  Parameters
  ----------
  data : ndarray | None
      3D scalar array.
  level: float | None
      The level at which the isosurface is constructed from *data*.
  vertex_colors : ndarray | None
      The vertex colors to use.
  face_colors : ndarray | None
      The face colors to use.
  color : ndarray | None
      The color to use.
  **kwargs : dict
      Keyword arguments to pass to the mesh construction.
docstr: Set the scalar array data
  
  Parameters
  ----------
  data : ndarray
      A 3D array of scalar values. The isosurface is constructed to show
      all locations in the scalar field equal to ``self.level``.
  vertex_colors : array-like | None
      Colors to use for each vertex.
  face_colors : array-like | None
      Colors to use for each face.
  color : instance of Color
      The color to use.
docstr_tok: ["Set","the","scalar","array","data","Parameters","--","--","--","--","--","data",":","ndarray","A","3D","array","of","scalar","values",".","The","isosurface","is","constructed","to","show","all","locations","in","the","scalar","field","equal","to","``","self.level","``",".","vertex_colors",":","array-like","|","None","Colors","to","use","for","each","vertex",".","face_colors",":","array-like","|","None","Colors","to","use","for","each","face",".","color",":","instance","of","Color","The","color","to","use","."]
code: def set_data(
      self, data=None, vertex_colors=None, face_colors=None, color=None
  ):
      """Set the scalar array data
  
      Parameters
      ----------
      data : ndarray
          A 3D array of scalar values. The isosurface is constructed to show
          all locations in the scalar field equal to ``self.level``.
      vertex_colors : array-like | None
          Colors to use for each vertex.
      face_colors : array-like | None
          Colors to use for each face.
      color : instance of Color
          The color to use.
      """
      # We only change the internal variables if they are provided
      if data is not None:
          self._data = data
          self._recompute = True
      if vertex_colors is not None:
          self._vertex_colors = vertex_colors
          self._update_meshvisual = True
      if face_colors is not None:
          self._face_colors = face_colors
          self._update_meshvisual = True
      if color is not None:
          self._color = Color(color)
          self._update_meshvisual = True
      self.update()
  
file_path: vispy/vispy/visuals/isosurface.py
imports: from __future__ import division
  from .mesh import MeshVisual
  from ..geometry.isosurface import isosurface
  from ..color import Color
label_desc: Use image node_id 4 for calling the IsosurfaceVisual obj's underlying member method code with example usage: obj.set_data(data, vertex_colors, face_colors, color) without return types