autolens.plot.XTicks

class autolens.plot.XTicks(manual_values: Optional[List[float]] = None, **kwargs)
__init__(manual_values: Optional[List[float]] = None, **kwargs)

The settings used to customize a figure’s y and x ticks using the YTicks and XTicks objects.

This object wraps the following Matplotlib methods:

Parameters:manual_values – Manually override the tick labels to display the labels as the input list of floats.

Methods

__init__(manual_values, **kwargs) The settings used to customize a figure’s y and x ticks using the YTicks and XTicks objects.
set(array, min_value, max_value, units[, …]) Set the x ticks of a figure using the shape of an input Array2D object and input units.
tick_values_from(min_value, max_value) Calculate the ticks used for the yticks or xticks from input values of the minimum and maximum coordinate values of the y and x axis.
tick_values_in_units_from(array, min_value, …) Calculate the labels used for the yticks or xticks from input values of the minimum and maximum coordinate values of the y and x axis.

Attributes

config_dict
config_folder
set(array: Optional[autoarray.structures.arrays.two_d.array_2d.Array2D], min_value: float, max_value: float, units: autoarray.plot.wrap.wrap_base.Units, use_integers=False)

Set the x ticks of a figure using the shape of an input Array2D object and input units.

Parameters:
  • array – The 2D array of data which is plotted.
  • min_value – the minimum value of the xticks that figure is plotted using.
  • max_value – the maximum value of the xticks that figure is plotted using.
  • units – The units of the figure.