I want to cycle through the matplotlib colors, so I get the cycler, but I don't know how to cycle through the colors:
import matplotlib as mpl
c = mpl.rcParams['axes.prop_cycle']
c
is now a cycler.Cycler
object. But I cannot do c.next()
or something like that. How do I call a Cycler
to loop (cycle, really, not just loop once) through the colors?