qudi.util.colordefs.ColorScaleRainbow

class qudi.util.colordefs.ColorScaleRainbow[source]

Bases: qudi.util.colordefs.ColorScale

Define the color map that goes from dark blue to bright red. Looks gay but is not preferable for a number of reasons:

  • brightness linearity,

  • visual banding,

  • red-green colorblindness problems

  • and more…

See the matplotlib discussion about their default color scale for reference.

__init__()

Methods

__init__()

Attributes

COLORS

COLORS = array([[  0,   0, 132, 255],        [  0,   0, 241, 255],        [  0,  88, 255, 255],        [  0, 204, 255, 255],        [ 66, 255, 149, 255],        [160, 255,  86, 255],        [254, 237,   0, 255],        [255, 129,   0, 255],        [255,  26,   0, 255]], dtype=uint8)