class ListedColormap(*args, alpha=None, **kwargs)[source]

Bases: matplotlib.colors.ListedColormap, proplot.styletools._Colormap

New base class for all ListedColormaps.

  • alpha (float, optional) – The opacity for the entire colormap. Overrides the input colors.

  • *args, **kwargs – Passed to ListedColormap.

Methods Summary

concatenate(*args[, name, N])

Append arbitrary colormaps onto this colormap.

from_file(path[, warn_on_failure])

Load color cycle from a file.


Save the colormap data to a file.


Set the opacity for the entire colormap.

shifted([shift, name])

Return a cyclically shifted version of the colormap.

truncated([left, right, name])

Return a truncated version of the colormap.

updated([colors, name, N, alpha])

Return a new colormap with relevant properties copied from this one if they were not provided as keyword arguments.