-
Notifications
You must be signed in to change notification settings - Fork 73
Home
brewer2mpl is a pure Python package for accessing colorbrewer2.org color maps from Python. With brewer2mpl you can get the raw RGB colors of all 165 colorbrewer2.org color maps. The color map data ships with brewer2mpl so no internet connection is required.
matplotlib is not required to install or use brewer2mpl, though it is necessary if you want to get matplotlib color map objects.
Note that the colorbrewer2.org color maps are already in matplotlib in the matplotlib.cm
module. If all you need is a color bar then you can use those. You can see all of matplotlib's color maps at http://matplotlib.sourceforge.net/examples/pylab_examples/show_colormaps.html. (The capitalized ones are from colorbrewer2.org.)
You can download the latest release of brewer2mpl from PyPI or the development version from the GitHub repository.
See https://github.com/jiffyclub/brewer2mpl/blob/master/CHANGELOG.rst.