Color Maps

custom(red, green, blue, name='coolheat', n=1024)
Parameters
  • red – List of (red fraction, y0, y1) tuples

  • green – List of (red fraction, y0, y1)

  • blue – List of (red fraction, y0, y1)

  • name – Colormap name

  • n – RBG quantization levels

Returns

Colormap

mapstack(maps, fractions=None, ranges=None)

Create a colormap stacking an arbitrary number of conventional Matplotlib colormaps.

Parameters
  • maps (list of str) – List of colormap NAMES

  • fractions (list of float) – For each original colormap, the fraction it’ll take of the merged colormap. [0<fr_0<1, …]

  • ranges (list of tuple) – For each original colormap, the range taken. [(0=<min<1, 0<max<=1)_0, …]

Returns

mpl.colors.LinearSegmentedColormap