obspy.imaging.cm._get_cmap

_get_cmap(name, lut=None, reverse=False)[source]

Load a LinearSegmentedColormap from segmentdata dictionary saved as numpy compressed binary data.

Parameters:
  • name (str) Name of colormap to load, same as filename in obspy/imaging/data without .npz file suffix.
  • lut (int) Specifies the number of discrete color values in the colormap. None to use matplotlib default value (continuous colormap).
  • reverse (bool) Whether to return the specified colormap reverted.
Return type:

LinearSegmentedColormap