argopy.plot.ArgoColors#
- class ArgoColors(name: str = 'Set1', N: int | None = None)[source]#
Class to manage discrete coloring for Argo related variables
Call signatures:
from argopy.plot import ArgoColors ArgoColors().list_valid_known_colormaps ArgoColors().known_colormaps.keys() ArgoColors('data_mode') ArgoColors('data_mode').cmap ArgoColors('data_mode').definition ArgoColors('Set2').cmap ArgoColors('Spectral', N=25).cmap
Methods
__init__([name, N])cbar([ticklabels])Return a colorbar with adjusted tick labels, experimental
show_COLORS()Generate an HTML representation of the
ArgoColors.COLORSpaletteto_rgba(range, value)Return the RGBA color for a given value of the colormap and a range
Attributes
Set of Argo colors derived from the logo
Discrete colormap as
matplotlib.colors.LinearSegmentedColormapDefinition of the current known colormap, as a dictionary
List of all known colormaps, including alternative names
Dictionary with ticks as keys and colors as values
paletteTry to return a seaborn color palette as a list of RGB tuples or
matplotlib.colors.ListedColormapDictionary with number of colors in known quantitative maps
Dictionary with ticks as keys and ticklabels as values