https://github.com/mfschubert/ccmaps
Custom matplotlib colormaps
https://github.com/mfschubert/ccmaps
Last synced: 9 months ago
JSON representation
Custom matplotlib colormaps
- Host: GitHub
- URL: https://github.com/mfschubert/ccmaps
- Owner: mfschubert
- License: mit
- Created: 2025-01-21T17:52:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-02T15:16:31.000Z (11 months ago)
- Last Synced: 2025-09-30T07:02:34.926Z (10 months ago)
- Language: Python
- Size: 162 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A few custom matplotlib colormaps


This package includes custom matplotlib colormaps that I have found to be useful. These currently include:
- `WBGYR` (white-blue-green-yellow-red), which is often used to plot electromagnetic field intensities ([1](https://projects.iq.harvard.edu/files/muri_metasurfaces/files/1190.full_.pdf), [2](https://github.com/flexcompute/metalens/blob/main/Metalens_Simulate_Single.ipynb)).
- `BKR` (white-blue-black-red-white), appropriate for electromagnetic field amplitudes.
- `cmap_for_wavelength`, which generates a colormap that interpolates between the chosen background color and the color for the specified wavelength (in nanometers).
## Install
```
pip install ccmaps
```
## Examples
