Source code for tueplots.cycler
"""Colour and style cycling (:mod:`tueplots.cycler`).
Defines custom cyclers for colours, markers, and line styles to
keep plots visually distinct.
"""
from matplotlib import cycler as mpl_cycler
[docs]
def cycler(**kwargs):
r"""Wrap a matplotlib cycler object into a parameter-dictionary compatible with plt.rcParams.
Please refer to
https://matplotlib.org/cycler/
and
https://matplotlib.org/stable/tutorials/intermediate/color_cycle.html
for information about how to use cyclers.
"""
return {"axes.prop_cycle": mpl_cycler(**kwargs)}