Colormaps (seislib.colormaps)

SeisLib comes with the beautiful scientific colormaps created by Fabio Crameri. These can be simply used as traditional matplotlib colormaps, for example:

import seislib.colormaps as scm
import numpy as np
import matplotlib.pyplot as plt

X, Y = np.meshgrid(np.linspace(0, 10), np.linspace(0, 10))
Z = np.sin(X) * np.cos(Y)
plt.pcolormesh(X, Y, Z, cmap=scm.batlow)

Make sure to check Fabio Crameri’s website for more information!