[docs]classTitle(AbstractMatWrap):def__init__(self,prefix:str=None,disable_log10_label:bool=False,**kwargs):""" The settings used to customize the figure's title. This object wraps the following Matplotlib methods: - plt.title: https://matplotlib.org/3.3.2/api/_as_gen/matplotlib.pyplot.title.html The title will automatically be set if not specified, using the name of the function used to plot the data. Parameters ---------- prefix A string that is added before the title, for example to put the name of the dataset and galaxy in the title. disable_log10_label If True, the (log10) label is not added to the title if the data is plotted on a log-scale. """super().__init__(**kwargs)self.prefix=prefixself.disable_log10_label=disable_log10_labelself.manual_label=self.kwargs.get("label")defset(self,auto_title=None,use_log10:bool=False):config_dict=self.config_dictlabel=auto_titleifself.manual_labelisNoneelseself.manual_labelifself.prefixisnotNone:label=f"{self.prefix}{label}"ifuse_log10andnotself.disable_log10_label:label=f"{label} (log10)"if"label"inconfig_dict:config_dict.pop("label")plt.title(label=label,**config_dict)