autogalaxy.plot.Cmap#
- class Cmap[source]#
Bases:
AbstractMatWrap
Customizes the Matplotlib colormap and its normalization.
This object wraps the following Matplotlib methods:
colors.Linear: https://matplotlib.org/3.3.2/tutorials/colors/colormaps.html
colors.LogNorm: https://matplotlib.org/3.3.2/tutorials/colors/colormapnorms.html
colors.SymLogNorm: https://matplotlib.org/3.3.2/api/_as_gen/matplotlib.colors.SymLogNorm.html
The cmap that is created is passed into various Matplotlib methods, most notably imshow:
- Parameters
symmetric (
bool
) – If True, the colormap normalization (e.g. vmin and vmax) span the same absolute values producing a symmetric color bar.
Methods
Returns the Normalization object which scales of the colormap.
symmetric_cmap_from
vmax_from
vmin_from
Attributes
cmap
config_category
config_dict
config_folder