autolens.plot.Colorbar#
- class autolens.plot.Colorbar(manual_tick_labels: Optional[List[float]] = None, manual_tick_values: Optional[List[float]] = None, **kwargs)[source]#
- __init__(manual_tick_labels: Optional[List[float]] = None, manual_tick_values: Optional[List[float]] = None, **kwargs)[source]#
Customizes the colorbar of the plotted figure.
This object wraps the following Matplotlib method:
The colorbar object cb that is created is also customized using the following methods:
cb.set_yticklabels: https://matplotlib.org/3.3.2/api/_as_gen/matplotlib.axes.Axes.set_yticklabels.html
- Parameters
manual_tick_labels – Manually override the colorbar tick labels to an input list of float.
manual_tick_values – If the colorbar tick labels are manually specified the locations on the colorbar they appear running 0 -> 1.
Methods
__init__
([manual_tick_labels, …])Customizes the colorbar of the plotted figure.
set
()Set the figure’s colorbar, optionally overriding the tick labels and values with manual inputs.
set_with_color_values
(cmap, color_values)Set the figure’s colorbar using an array of already known color values.
Attributes
config_dict
config_folder