autolens.plot.Cmap#

class autolens.plot.Cmap(symmetric: bool = False, **kwargs)[source]#
__init__(symmetric: bool = False, **kwargs)[source]#

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

__init__([symmetric])

Customizes the Matplotlib colormap and its normalization.

norm_from(array)

Returns the Normalization object which scales of the colormap.

vmax_from(array)

vmin_from(array)

Attributes

cmap

config_dict

config_folder

symmetric