Bipolar hot/cold colormap, with neutral central color.
This colormap is meant for visualizing diverging data; positive
and negative deviations from a central value. It is similar to a “hot”
blackbody colormap for positive values, but with a complementary
“cold” colormap for negative values.
Parameters:
lutsize (int) – The number of elements in the colormap lookup table. (Default is 256.)
neutral (float) – The gray value for the neutral middle of the colormap. (Default is
1/3.)
The colormap goes from cyan-blue-neutral-red-yellow if neutral
is < 0.5, and from blue-cyan-neutral-yellow-red if neutral > 0.5.
For shaded 3D surfaces, a neutral near 0.5 is better, because it
minimizes luminance changes that would otherwise obscure shading cues
for determining 3D structure.
For 2D heat maps, a neutral near the 0 or 1 extremes is better, for
maximizing luminance change and showing details of the data.
interp (str or int, optional) – Specifies the type of interpolation.
(‘linear’, ‘nearest’, ‘zero’, ‘slinear’, ‘quadratic, ‘cubic’)
or as an integer specifying the order of the spline interpolator
to use. Default is ‘linear’ for dark neutral and ‘cubic’ for light
neutral. See scipy.interpolate.interp1d.
Bipolar hot/cold colormap, with neutral central color.
This colormap is meant for visualizing diverging data; positive
and negative deviations from a central value. It is similar to a “hot”
blackbody colormap for positive values, but with a complementary
“cold” colormap for negative values.
Parameters:
lutsize (int) – The number of elements in the colormap lookup table. (Default is 256.)
neutral (float) – The gray value for the neutral middle of the colormap. (Default is
1/3.)
The colormap goes from cyan-blue-neutral-red-yellow if neutral
is < 0.5, and from blue-cyan-neutral-yellow-red if neutral > 0.5.
For shaded 3D surfaces, a neutral near 0.5 is better, because it
minimizes luminance changes that would otherwise obscure shading cues
for determining 3D structure.
For 2D heat maps, a neutral near the 0 or 1 extremes is better, for
maximizing luminance change and showing details of the data.
interp (str or int, optional) – Specifies the type of interpolation.
(‘linear’, ‘nearest’, ‘zero’, ‘slinear’, ‘quadratic, ‘cubic’)
or as an integer specifying the order of the spline interpolator
to use. Default is ‘linear’ for dark neutral and ‘cubic’ for light
neutral. See scipy.interpolate.interp1d.