chaco.default_colormaps module¶
A collection of predefined colormap generator functions.
Each of the functions can be called with min_value and max_value parameters. In that case, they produce a Colormap which linearly maps over the specified range and has the color palette indicated by the function name.

chaco.default_colormaps.
Blues
(range, **traits)¶ Generator for the ‘Blues’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
BrBG
(range, **traits)¶ Generator for the ‘BrBG’ colormap from ColorBrewer.
This is a diverging colormap. It is good for data which is centered around a “special” value, like 0.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
BuGn
(range, **traits)¶ Generator for the ‘BuGn’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
BuPu
(range, **traits)¶ Generator for the ‘BuPu’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
CoolWarm
(range, **traits)¶ Generator of Kenneth Moreland’s CoolWarm colormap.
BlueWhiteRed with smooth lightness transitions. Good for applying to 3D surfaces or otherwise have extra shading applied.
http://www.sandia.gov/~kmorel/documents/ColorMaps/ColorMapsExpanded.pdf

chaco.default_colormaps.
CubeHelix
(range, **traits)¶ Generator of Dave Green’s CubeHelix colormap.
Sequential colormap with a linear lightness increasing from black to white deviating away from gray in a tapered helix.

chaco.default_colormaps.
CubicL
(range, **traits)¶ Generator of the ‘CubicL’ colormap from Matteo Niccoli.
Labbased rainbow scheme with cubiclaw luminance, like CubicYF but with red at the high end, a modest deviation from being completely perceptual.

chaco.default_colormaps.
CubicYF
(range, **traits)¶ Generator of the ‘CubicYF’ colormap from Matteo Niccoli.
Labbased rainbow scheme with cubiclaw luminance.

chaco.default_colormaps.
Dark2
(range, **traits)¶ Generator for the ‘Dark2’ colormap from ColorBrewer.

chaco.default_colormaps.
GnBu
(range, **traits)¶ Generator for the ‘GnBu’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
Greens
(range, **traits)¶ Generator for the ‘Greens’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
Greys
(range, **traits)¶ Generator for the ‘Greys’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
LinearL
(range, **traits)¶ Generator of the ‘LinearL’ colormap from Matteo Niccoli.
Labbased linear lightness rainbow.

chaco.default_colormaps.
LinearLHot
(range, **traits)¶ Generator of the ‘LinearLHot’ colormap from Matteo Niccoli.
Linear lightness modification of the hot colormap.

chaco.default_colormaps.
OrRd
(range, **traits)¶ Generator for the ‘OrRd’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
Oranges
(range, **traits)¶ Generator for the ‘Oranges’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
PRGn
(range, **traits)¶ Generator for the ‘PRGn’ colormap from ColorBrewer.
This is a diverging colormap. It is good for data which is centered around a “special” value, like 0.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
Paired
(range, **traits)¶ Generator for the ‘Paired’ colormap from ColorBrewer.

chaco.default_colormaps.
Pastel1
(range, **traits)¶ Generator for the ‘Pastel1’ colormap from ColorBrewer.

chaco.default_colormaps.
Pastel2
(range, **traits)¶ Generator for the ‘Pastel2’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
PiYG
(range, **traits)¶ Generator for the ‘PiYG’ colormap from ColorBrewer.
This is a diverging colormap. It is good for data which is centered around a “special” value, like 0.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
PuBu
(range, **traits)¶ Generator for the ‘PuBu’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
PuBuGn
(range, **traits)¶ Generator for the ‘PuBuGn’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
PuOr
(range, **traits)¶ Generator for the ‘PuOr’ colormap from ColorBrewer.
This is a diverging colormap. It is good for data which is centered around a “special” value, like 0.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
PuRd
(range, **traits)¶ Generator for the ‘PuRd’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
Purples
(range, **traits)¶ Generator for the ‘Purples’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
RdBu
(range, **traits)¶ Generator for the ‘RdBu’ colormap from ColorBrewer.
This is a diverging colormap. It is good for data which is centered around a “special” value, like 0.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
RdGy
(range, **traits)¶ Generator for the ‘RdGy’ colormap from ColorBrewer.
This is a diverging colormap. It is good for data which is centered around a “special” value, like 0.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
RdPu
(range, **traits)¶ Generator for the ‘RdPu’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
RdYlBu
(range, **traits)¶ Generator for the ‘RdYlBu’ colormap from ColorBrewer.
This is a diverging colormap. It is good for data which is centered around a “special” value, like 0.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
RdYlGn
(range, **traits)¶ Generator for the ‘RdYlGn’ colormap from ColorBrewer.
This is a diverging colormap. It is good for data which is centered around a “special” value, like 0.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
Reds
(range, **traits)¶ Generator for the ‘Reds’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
Set1
(range, **traits)¶ Generator for the ‘Set1’ colormap from ColorBrewer.

chaco.default_colormaps.
Set2
(range, **traits)¶ Generator for the ‘Set1’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
Set3
(range, **traits)¶ Generator for the ‘Set1’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
Spectral
(range, **traits)¶ Generator for the ‘Spectral’ colormap from ColorBrewer.
This is a diverging colormap. It is good for data which is centered around a “special” value, like 0.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
YlGn
(range, **traits)¶ Generator for the ‘YlGn’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
YlGnBu
(range, **traits)¶ Generator for the ‘YlGnBu’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
YlOrBr
(range, **traits)¶ Generator for the ‘YlOrBr’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
YlOrRd
(range, **traits)¶ Generator for the ‘YlOrRd’ colormap from ColorBrewer.
Although the ColorBrewer colormaps are defined as discrete colormaps, we create continuous colormaps from them by linear interpolation in RGB colorspace.

chaco.default_colormaps.
accent
(range, **traits)¶ Generator for the ‘accent’ colormap from ColorBrewer.

chaco.default_colormaps.
autumn
(range, **traits)¶ Generator function for the ‘autumn’ colormap.

chaco.default_colormaps.
binary
(range, **traits)¶ Generator function for the ‘binary’ colormap.

chaco.default_colormaps.
bone
(range, **traits)¶ Generator function for the ‘bone’ colormap.

chaco.default_colormaps.
center
(func, center=0.0)¶ Modify the range of a colormap to be centered around the given value.
For example, when passed a DataRange1D(low=0.5, high=1.0), a colormap would usually have its lowest color at 0.5 and its highest at 1.0. Some colormaps are designed such that the middle color is special. Using this modifier, the example range would be modified to 1.0 and 1.0 to make 0.0 correspond with the middle color.
 Parameters
func (callable) – A colormap factory function like those provided in this module.
center (float, optional) – The center value in dataspace.
 Returns
cmap – A wrapper factory function that can be used in place of the original factory function.
 Return type
callable

chaco.default_colormaps.
cool
(range, **traits)¶ Generator function for the ‘cool’ colormap.

chaco.default_colormaps.
copper
(range, **traits)¶ Generator function for the ‘copper’ colormap.

chaco.default_colormaps.
cw1_004
(range, **traits)¶ Generator function for the Crumblingwalls cw1004 gradient

chaco.default_colormaps.
cw1_005
(range, **traits)¶ Generator function for the Crumblingwalls cw1005 gradient

chaco.default_colormaps.
cw1_006
(range, **traits)¶ Generator function for the Crumblingwalls cw1006 gradient

chaco.default_colormaps.
cw1_028
(range, **traits)¶ Generator function for the Crumblingwalls cw1058 gradient

chaco.default_colormaps.
flag
(range, **traits)¶ Generator function for the ‘flag’ colormap.

chaco.default_colormaps.
gist_earth
(range, **traits)¶ Generator for the ‘gist_earth’ colormap from GIST.

chaco.default_colormaps.
gist_gray
(range, **traits)¶ Generator for the ‘gist_gray’ colormap from GIST.

chaco.default_colormaps.
gist_heat
(range, **traits)¶ Generator for the ‘gist_heat’ colormap from GIST.

chaco.default_colormaps.
gist_ncar
(range, **traits)¶ Generator for the ‘gist_ncar’ colormap from GIST.

chaco.default_colormaps.
gist_rainbow
(range, **traits)¶ Generator for the ‘gist_rainbow’ colormap from GIST.

chaco.default_colormaps.
gist_stern
(range, **traits)¶ Generator for the ‘gist_stern’ colormap from GIST.

chaco.default_colormaps.
gist_yarg
(range, **traits)¶ Generator for the ‘gist_yarg’ colormap from GIST.

chaco.default_colormaps.
gmt_drywet
(range, **traits)¶

chaco.default_colormaps.
gray
(range, **traits)¶ Generator function for the ‘gray’ colormap.

chaco.default_colormaps.
hot
(range, **traits)¶ Generator function for the ‘hot’ colormap.

chaco.default_colormaps.
hsv
(range, **traits)¶ Generator function for the ‘hsv’ colormap.

chaco.default_colormaps.
inferno
(range, **traits)¶ Generator for the ‘inferno’ colormap from matplolib

chaco.default_colormaps.
jet
(range, **traits)¶ Generator function for the ‘jet’ colormap.

chaco.default_colormaps.
magma
(range, **traits)¶ Generator for the ‘magma’ colormap from matplolib

chaco.default_colormaps.
pink
(range, **traits)¶ Generator function for the ‘pink’ colormap.

chaco.default_colormaps.
plasma
(range, **traits)¶ Generator for the ‘plasma’ colormap from matplolib

chaco.default_colormaps.
prism
(range, **traits)¶ Generator function for the ‘prism’ colormap.

chaco.default_colormaps.
reverse
(func)¶ Modify a colormap factory to reverse the color sequence
 Parameters
func (callable) – A colormap factory function like those provided in this module.
 Returns
cmap – A wrapper factory function that can be used in place of the original factory function.
 Return type
callable

chaco.default_colormaps.
seismic
(range, **traits)¶ Generator for ‘seismic’ colormap from matplotlib

chaco.default_colormaps.
spring
(range, **traits)¶ Generator function for the ‘spring’ colormap.

chaco.default_colormaps.
summer
(range, **traits)¶ Generator function for the ‘summer’ colormap.

chaco.default_colormaps.
terrain
(range, **traits)¶ Generator for ‘terrain’ colormap from matplotlib

chaco.default_colormaps.
viridis
(range, **traits)¶ Generator for the ‘viridis’ colormap from matplolib

chaco.default_colormaps.
winter
(range, **traits)¶ Generator function for the ‘winter’ colormap.

chaco.default_colormaps.
wistia
(range, **traits)¶ An MIT licensed, colorblindfriendly heatmap from Wistia

chaco.default_colormaps.
yarg
(range, **traits)¶ Generator function for the ‘yarg’ colormap.