add_cycler_if_not_none#

add_cycler_if_not_none(axes: Axes | np.ndarray[Any, Axes], cycler: Cycler | None) None[source]#

Add cycler to Axes 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:
  • axes (Axes | np.ndarray[Any, Axes]) – Axes to add cycler to.

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