Skip to content

lijunzh/SeisCM

Repository files navigation

Seismic Colormaps (SeisCM)

PyPI version License Python versions CI/CD

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

Colormap Demo

Installation

From PyPI

pip install seiscm

From source (development)

git clone https://github.com/lijunzh/seiscm.git
cd seiscm
uv sync --all-extras --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 pytest                 # test
uv run pre-commit install     # set up git hooks

Contact

For issues, please open a GitHub issue or contact gatechzhu@gmail.com.

About

Seismic ColorMap

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages