Seismic Colormaps (SeisCM)

Introduction
Geophysicists can never agree on a standard colormap — so here's a package
with the most common ones, ready to import. SeisCM provides
matplotlib-compatible colormaps designed
specifically for seismic and geophysical data visualization.
Pull requests for new colormaps are welcome!
Available Colormaps
| Name |
Description |
bwr |
Blue-White-Red with configurable mid-point transparency |
seismic |
Classic seismic amplitude display |
phase |
Phase attribute visualisation |
frequency |
Frequency attribute visualisation |
Installation
From PyPI
pip install seiscm
From source (development)
git clone https://github.com/lijunzh/seiscm.git
cd seiscm
uv sync --dev
Quick Start
from seiscm import bwr
import matplotlib.pyplot as plt
import numpy as np
data = np.random.default_rng(42).standard_normal((100, 100))
plt.imshow(data, cmap=bwr())
plt.colorbar()
plt.show()
Dependencies
Development
uv run ruff check src tests # lint
uv run ruff format src tests # format
uv run mypy # type-check
uv run pytest --cov # test with coverage
uv run pre-commit install # set up git hooks
Contributing
See CONTRIBUTING.md and the
Code of Conduct. Security issues: see
SECURITY.md.
Citing
A CITATION.cff file is provided; GitHub's
"Cite this repository" button uses it.
License
MIT
Contact
For issues, please open a
GitHub issue or contact
gatechzhu@gmail.com.