autogalaxy.plot.Cmap#

class Cmap[source]#

Bases: AbstractMatWrap

Customizes the Matplotlib colormap and its normalization.

This object wraps the following Matplotlib methods:

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

norm_from

Returns the Normalization object which scales of the colormap.

symmetric_cmap_from

vmax_from

vmin_from

Attributes

cmap

config_category

config_dict

config_folder

log10_min_value

norm_from(array, use_log10=False)[source]#

Returns the Normalization object which scales of the colormap.

If vmin / vmax are not manually input by the user, the minimum / maximum values of the data being plotted are used.

Parameters:

array (ndarray) – The array of data which is to be plotted.

Return type:

object