lookuptable

Cones.lookuptable(range=None, gradient=None, logscale=None, size=None, **kwargs)[source]

Modify lookup table properties.

An objects lookup tables determines how entries of the scalar array are translated to color values. Lookup tables have no effect when directly mapping RGB color values.

Parameters:
  • range ((float, float)) – Accpeted range of scalar values.

  • gradient (str) – Color scheme identifier, see below.

  • logscale (bool) – Switch between linear and logarithmic scale.

  • size (int) – Size of lookup table.

Keyword Arguments:
  • below (array_like, shape (4, )) – Color for scalars below the specified range.

  • above (array_like, shape (4, )) – Color for scalars above the specified range.

  • nan (array_like, shape (4, )) – Special color for NaN scalar values.

Smooth color gradients are defined by the color scheme identifiers ‘hot’, ‘cool’, ‘jet’, and ‘grey’. The color schemes ‘spectral’, ‘diverging’, ‘blue’, ‘orange’, and ‘purple’ define a discrete color series.

If provied, out of range values are marked with the below, above, and nan colors. Not that those colors also have an alpha intensity value to control opacity.

Note

Arguments not provided have no affect on the corresponding lookup table property.