brewer2mpl - jiffyclub/palettable GitHub Wiki
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.org/examples/color/colormaps_reference.html. (The capitalized ones are from colorbrewer2.org.)
Download
You can download the latest release of brewer2mpl from PyPI or the development version from the GitHub repository.
Install
brewer2mpl is pure Python and has no hard dependencies so it should be simple to install. brewer2mpl requires Python 2.6+. It can be installed with pip, easy_install, or from source with python setup.py install
. matplotlib is required to get matplotlib color maps, but is not required for installation or other usage of brewer2mpl.
Documentation
Examples
brewer2mpml color maps displayed using ipythonblocks: http://nbviewer.ipython.org/github/jiffyclub/brewer2mpl/blob/master/demo/brewer2mpl_maps.ipynb
Some examples of brewer2mpl in use by others:
- http://nbviewer.ipython.org/5357268
- http://nbviewer.ipython.org/urls/raw.github.com/cs109/content/master/lec_03_statistical_graphs.ipynb
Change Log
See https://github.com/jiffyclub/brewer2mpl/blob/master/CHANGELOG.rst.