39.8 Spectrum object

The Spectrum object defines a color spectrum for the contour display.

Access
import visualization
session.spectrums[name]


39.8.1 Spectrum(...)

This method creates a Spectrum object and places it in the spectrums repository.

Path
session.Spectrum

Required arguments

name

A string name for the spectrum.

colors

A sequence of strings indicating the colors of the spectrum.

Optional arguments

None.

Return value

A Spectrum object.

Exceptions

None.


39.8.2  Members

The Spectrum object has no members.