autogalaxy.plot.XLabel#

class XLabel[source]#

Bases: AbstractLabel

The settings used to customize the figure’s title and y and x labels.

This object wraps the following Matplotlib methods:

The y and x labels will automatically be set if not specified, using the input units.

Parameters:
  • units – The units the data is plotted using.

  • manual_label – A manual label which overrides the default computed via the units if input.

Methods

set

Set the x labels of the figure, including the fontsize.

vmax_from

The vmax of a plot, for example the maximum value of the colormap and colorbar.

vmin_from

The vmin of a plot, for example the minimum value of the colormap and colorbar.

Attributes

config_category

config_dict

config_folder

log10_max_value

log10_min_value

set(auto_label=None)[source]#

Set the x labels of the figure, including the fontsize.

The x labels are always the distance scales, thus the labels are either arc-seconds or kpc and depending on the unit_label the figure is plotted in.

Parameters:

units – The units of the image that is plotted which informs the appropriate x label text.