cmocean
Colormaps for Oceanography
What it is and what it does
cmocean is a library of colormaps specifically designed for oceanographic visualization. It provides color schemes that work with matplotlib, allowing scientists and data analysts to create plots of ocean data. The package is grounded in research on color perception for oceanographic applications.
The package depends on matplotlib, numpy, and packaging, making it a lightweight addition to standard scientific Python workflows. It integrates directly into matplotlib's colormap system, so you can use cmocean colormaps anywhere you would use a standard matplotlib colormap. An optional plots submodule is available if you install with extras, which adds viscm and colorspacious for advanced color analysis.
Use it for:
- Visualizing oceanographic measurements in plots alongside matplotlib.
- Creating consistent color schemes across multiple scientific figures.
- Generating heatmaps and contour plots of ocean data.
- Using colormaps in other tools via the cmocean ecosystem across MATLAB, R, Julia, and other platforms.
- Applying research-backed color selection for oceanographic applications.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides perceptually uniform colormaps designed for oceanographic data visualization, integrating with matplotlib for scientific plots.
Yes, if you work with oceanographic data or need colormaps for scientific visualization. The package is lightweight, has no known vulnerabilities, and integrates cleanly with matplotlib. The dormant maintenance status is not a blocker—the colormaps themselves are stable research artifacts. However, verify the license terms before use, as the license is currently unclear in the metadata.
Install
cmocean on PyPI
pip
pip install cmoceanuv
uv add cmoceanpoetry
poetry add cmoceanInstalling cmocean
Before you install
Low install friction with three common dependencies (matplotlib, numpy, packaging). Dormant maintenance status—last release was 860 days ago, though the repository remains active with a recent commit on 2024-11-18.
License in practice
License status is unclear; no SPDX identifier or raw license text is available in the metadata. Verify the actual license terms before use in proprietary or restricted contexts.
Quickstart
pip install cmocean
import matplotlib.pyplot as plt
import cmocean.cm as cm
plt.scatter([2, 3], [2, 3], c=[2, 3], cmap=cm.thermal)
Requires Python >=3.8.
Verify before relying
- Whether the package is actively maintained or in long-term stable state despite dormant status.
- Actual license terms, given the unclear license_treatment in metadata.
- Whether colormaps are suitable for color vision deficiency accessibility.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — matplotlib, numpy, packaging |
| Maintenance | dormant — 860 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 152,864/month — #10,891 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: cmocean-4.0.3-py3-none-any.whl
Keywords: colormaps, oceanography, plotting, visualization
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
cmcrameriProvides perceptually uniform colormaps by…
permissive · top 15,000 on PyPI
colorcetColorcet provides a collection of perceptually…
unclear · top 5,000 on PyPI
cmweathercmweather provides a collection of colormaps…
permissive · top 15,000 on PyPI
cmapcmap provides a collection of scientific…
permissive · top 15,000 on PyPI
basemap-dataProvides geographic data assets (coastlines,…
copyleft · top 15,000 on PyPI
colourmapGenerates unique RGB and HEX colors from input…
permissive · top 15,000 on PyPI
distinctipyGenerates lists of visually distinct colors of…
permissive · top 15,000 on PyPI
basemapBasemap renders geographic data on matplotlib…
permissive · top 15,000 on PyPI
copernicusmarineCopernicusmarine provides a CLI and Python API…
unclear · top 15,000 on PyPI
palettablePalettable provides a library of color palettes…
permissive · top 5,000 on PyPI