brewer2mpl
Connect colorbrewer2.org color maps to Python and matplotlib
Decision gist · record as of 2026-08-14
Yes, if you need ColorBrewer2 colors and are already using matplotlib or have a stable Python environment. The package has no dependencies, installs easily, and carries no security vulnerabilities. However, consider Palettable instead if you want active maintenance and ongoing feature updates—brewer2mpl has not been updated since 2014 and is explicitly superseded by its successor.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with no runtime dependencies.
- Package is aging—last release was 2014-09-19 and no updates since—but the repository remains active and unarchived.
- The maintainer has redirected users to Palettable as the successor project.
License · maintenance · safety
UNKNOWN (permissive) — Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions.
last release 2014-09-19 (4347 days) · last repo commit 2025-08-23 · 816 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 90,356 downloads/mo, #13,595 on PyPI
Alternatives
Verify before relying
pip install brewer2mpl
import brewer2mpl
bmap = brewer2mpl.get_map('Paired', 'Qualitative', 5)
print(bmap.hex_colors)- Whether the package works reliably with modern Python versions beyond those listed in classifiers (2.6, 2.7, 3.x unspecified).
- Current compatibility with recent matplotlib versions for mpl_colormap generation.
What it is and what it does
brewer2mpl is a pure Python package that bundles all 165 color maps from ColorBrewer2.org and makes them accessible programmatically. It requires no internet connection since the color data ships with the package. You can retrieve color maps by name, type (sequential, diverging, qualitative), and number of colors, then access the colors in multiple formats: raw RGB 0-255 triplets, hex strings, or matplotlib-normalized RGB 0-1 triplets.
The package wraps each color map in a BrewerMap object with attributes for the map name, color count, and matplotlib integration. You can generate matplotlib colormaps directly or access maps through direct module imports (e.g., `qualitative.Dark2[7]`). However, the package is no longer maintained—the last release was in 2014—and the author has directed new users to Palettable, its successor.
Use it for
- Generate consistent, publication-quality color palettes for matplotlib plots without hardcoding RGB values.
- Build data visualization tools that need pre-vetted, colorblind-friendly color schemes for categorical or continuous data.
- Access ColorBrewer2 palettes in Python scripts without requiring internet access or manual color definition.
- Create static color maps for scientific or business dashboards using sequential or diverging schemes.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need ColorBrewer2 colors and are already using matplotlib or have a stable Python environment.
The package has no dependencies, installs easily, and carries no security vulnerabilities. However, consider Palettable instead if you want active maintenance and ongoing feature updates—brewer2mpl has not been updated since 2014 and is explicitly superseded by its successor.
Install
brewer2mpl on PyPI
Before you install
Low install friction with no runtime dependencies. Package is aging—last release was 2014-09-19 and no updates since—but the repository remains active and unarchived. The maintainer has redirected users to Palettable as the successor project.
License in practice
Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions.
Quickstart
pip install brewer2mpl
import brewer2mpl
bmap = brewer2mpl.get_map('Paired', 'Qualitative', 5)
print(bmap.hex_colors)
Verify before relying
- Whether the package works reliably with modern Python versions beyond those listed in classifiers (2.6, 2.7, 3.x unspecified).
- Current compatibility with recent matplotlib versions for mpl_colormap generation.
Package facts
| License | UNKNOWN permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 4,347 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 90,356 / month, #13,595 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Topic :: Scientific/Engineering :: Visualization |
Evidence: brewer2mpl-1.4.1-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “colorbrewer color maps python”
- brewer2mplProvides access to all 165 ColorBrewer2.org color maps (sequential,…
- cmapcmap provides a collection of scientific colormaps (from matplotlib,…
- palettablePalettable provides a library of color palettes for Python that can…
Give your agent the search over MCP, or paste the wish link into any chat.
More Visualization packages
matplotlib creates static, animated, and interactive visualizations in Python, producing publication-quality figures in multiple formats for scripts, shells, web servers, and graphical interfaces.
Install it if you need to visualize data, generate publication-quality figures, or embed plots in applications.
ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.
Plotly is an interactive, browser-based graphing library that creates charts and visualizations from Python, rendering them as HTML that can be viewed in Jupyter notebooks, standalone files, or web applications.
Generates DOT language source code for graph structures and renders them using the Graphviz graph drawing software installed on your system.
Install it if you need to generate or render graphs from Python.
Streamlit transforms Python scripts into interactive web applications with minimal code, enabling rapid development of data dashboards, reports, and chat interfaces without requiring web development expertise.
Leather is a lightweight Python charting library for quick, no-frills data visualization. It generates charts without requiring perfect styling or extensive configuration.
See also palettable · cmap · colourmap · cycler · colored · epaper-dithering · cmcrameri · distinctipy · coloraide · colorhash