Cycler
\u00b6To inspect the values of the transposed Cycler
use\n the Cycler.by_key
method:
In [36]: c_m.by_key()\n Out[36]: \n-{'marker': ['s', 'o', 's', 'o', 's', 'o'],\n- 'color': ['r', 'r', 'g', 'g', 'b', 'b']}\n+{'color': ['r', 'r', 'g', 'g', 'b', 'b'],\n+ 'marker': ['s', 'o', 's', 'o', 's', 'o']}\n
This dict
can be mutated and used to create a new Cycler
with\n the updated values
In [37]: bk = c_m.by_key()\n \n In [38]: bk['color'] = ['green'] * len(c_m)\n \n In [39]: cycler(**bk)\n-Out[39]: (cycler('marker', ['s', 'o', 's', 'o', 's', 'o']) + cycler('color', ['green', 'green', 'green', 'green', 'green', 'green']))\n+Out[39]: (cycler('color', ['green', 'green', 'green', 'green', 'green', 'green']) + cycler('marker', ['s', 'o', 's', 'o', 's', 'o']))\n
We can use Cycler
instances to cycle over one or more kwarg
to\n plot
: