alphapepttools.pl.BaseColormaps#
- class alphapepttools.pl.BaseColormaps#
Base colormaps for alphapepttools plots
Attributes table#
Methods table#
|
Get a default matplotlib.pyplot cmap by name |
Attributes#
-
BaseColormaps.default_colormaps:
ClassVar[dict] = {'diverging': <matplotlib.colors.ListedColormap object>, 'diverging_r': <matplotlib.colors.ListedColormap object>, 'magma_clipped': <matplotlib.colors.LinearSegmentedColormap object>, 'sequential': <matplotlib.colors.ListedColormap object>, 'sequential_clipped': <matplotlib.colors.LinearSegmentedColormap object>, 'sequential_r': <matplotlib.colors.ListedColormap object>, 'sequential_r_clipped': <matplotlib.colors.LinearSegmentedColormap object>}#
Methods#
- classmethod BaseColormaps.get(colormap_name, n=None)#
Get a default matplotlib.pyplot cmap by name
Optionally, specify the number of colors to be retrieved from the colormap. defaults are set for colormap_name = “sequential” and “diverging”. Otherwise, colormap_name is passed to plt.get_cmap().