Qudi
Static Public Attributes | List of all members
colordefs.ColorScaleRainbow Class Reference

Define the color map that goes from dark blue to bright red. More...

Inheritance diagram for colordefs.ColorScaleRainbow:
Inheritance graph
[legend]
Collaboration diagram for colordefs.ColorScaleRainbow:
Collaboration graph
[legend]

Static Public Attributes

 COLORS
 
 COLORS_INV = COLORS[::-1]
 

Additional Inherited Members

- Public Member Functions inherited from colordefs.ColorScale
def __init__ (self)
 
- Public Attributes inherited from colordefs.ColorScale
 colormap
 
 cmap_normed
 
 lut
 

Detailed Description

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, etc.

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

Member Data Documentation

◆ COLORS

colordefs.ColorScaleRainbow.COLORS
static
Initial value:
= np.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=np.ubyte)

The documentation for this class was generated from the following file: