AxisTickLabelsDecorator

class qf_lib.plotting.decorators.axis_tick_labels_decorator.AxisTickLabelsDecorator(axis: Axis, labels: Optional[Sequence[str]] = None, tick_values: Optional[Sequence[float]] = None, rotation: Optional[Union[int, str]] = None, key: Optional[str] = None)[source]

Bases: ChartDecorator

Customizes tick labels for a given axis.

Parameters:
  • axis (Axis) – X or Y Axis object

  • labels (Sequence[str]) – a list of labels for ticks present in the Chart

  • tick_values (Sequence[float]) – sequence of floats that will be used as ticks

  • rotation (int, str) – rotation of selected axis labels. For example 20 = 20 degrees rotation

  • key (str) – see: ChartDecorator.__init__#key

Methods:

decorate(chart)

Modifies the axes object taken from the chart (e.g.

decorate(chart: Chart)[source]

Modifies the axes object taken from the chart (e.g. adds legend, draws cone, etc.).