add_cycler_if_not_none

add_cycler_if_not_none(axis: Axis | Axes, cycler: Cycler | None) None[source]

Add cycler to and axis if it is not None.

This is a convenience function that allow to opt out of using a cycler, which is needed to run a plotting function in a loop where the cycler is controlled from the outside.

Parameters:
  • axis (Axis | Axes) – Axis to plot on.

  • cycler (Cycler | None) – Plot style cycler to use.