autocti.plot.Cmap#

class autocti.plot.Cmap(symmetric: bool = False, **kwargs)[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 – 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: ndarray, use_log10: bool = False) object[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 – The array of data which is to be plotted.