--- /srv/reproducible-results/rbuild-debian/r-b-build.XcMWxy7s/b1/python-cycler_0.12.1-1_armhf.changes +++ /srv/reproducible-results/rbuild-debian/r-b-build.XcMWxy7s/b2/python-cycler_0.12.1-1_armhf.changes ├── Files │ @@ -1,3 +1,3 @@ │ │ - b9243ad81321b12222f769504169302d 649144 doc optional python-cycler-doc_0.12.1-1_all.deb │ + 1bfbba3ed84b55e3edc0027d21201fd2 649136 doc optional python-cycler-doc_0.12.1-1_all.deb │ 05a58b376b9261e6c0e8534e13326940 9496 python optional python3-cycler_0.12.1-1_all.deb ├── python-cycler-doc_0.12.1-1_all.deb │ ├── file list │ │ @@ -1,3 +1,3 @@ │ │ -rw-r--r-- 0 0 0 4 2024-03-13 21:18:27.000000 debian-binary │ │ -rw-r--r-- 0 0 0 1908 2024-03-13 21:18:27.000000 control.tar.xz │ │ --rw-r--r-- 0 0 0 647044 2024-03-13 21:18:27.000000 data.tar.xz │ │ +-rw-r--r-- 0 0 0 647036 2024-03-13 21:18:27.000000 data.tar.xz │ ├── control.tar.xz │ │ ├── control.tar │ │ │ ├── ./md5sums │ │ │ │ ├── ./md5sums │ │ │ │ │┄ Files differ │ ├── data.tar.xz │ │ ├── data.tar │ │ │ ├── ./usr/share/doc/python-cycler-doc/html/index.html │ │ │ │ @@ -278,26 +278,26 @@ │ │ │ │ │ │ │ │
│ │ │ │

Inspecting the Cycler

│ │ │ │

To inspect the values of the transposed Cycler use │ │ │ │ the Cycler.by_key method:

│ │ │ │
In [36]: c_m.by_key()
│ │ │ │  Out[36]: 
│ │ │ │ -{'marker': ['s', 'o', 's', 'o', 's', 'o'],
│ │ │ │ - 'color': ['r', 'r', 'g', 'g', 'b', 'b']}
│ │ │ │ +{'color': ['r', 'r', 'g', 'g', 'b', 'b'],
│ │ │ │ + 'marker': ['s', 'o', 's', 'o', 's', 'o']}
│ │ │ │  
│ │ │ │
│ │ │ │

This dict can be mutated and used to create a new Cycler with │ │ │ │ the updated values

│ │ │ │
In [37]: bk = c_m.by_key()
│ │ │ │  
│ │ │ │  In [38]: bk['color'] = ['green'] * len(c_m)
│ │ │ │  
│ │ │ │  In [39]: cycler(**bk)
│ │ │ │ -Out[39]: (cycler('marker', ['s', 'o', 's', 'o', 's', 'o']) + cycler('color', ['green', 'green', 'green', 'green', 'green', 'green']))
│ │ │ │ +Out[39]: (cycler('color', ['green', 'green', 'green', 'green', 'green', 'green']) + cycler('marker', ['s', 'o', 's', 'o', 's', 'o']))
│ │ │ │  
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │

Examples

│ │ │ │

We can use Cycler instances to cycle over one or more kwarg to │ │ │ │ plot :

│ │ │ │ ├── html2text {} │ │ │ │ │ @@ -167,25 +167,25 @@ │ │ │ │ │ In [35]: color_cycle[1:] │ │ │ │ │ Out[35]: cycler('color', ['g', 'b']) │ │ │ │ │ to return a sub-set of the cycle as a new _C_y_c_l_e_r. │ │ │ │ │ ******** IInnssppeeccttiinngg tthhee _CC_yy_cc_ll_ee_rr_?¶ ******** │ │ │ │ │ To inspect the values of the transposed _C_y_c_l_e_r use the _C_y_c_l_e_r_._b_y___k_e_y method: │ │ │ │ │ In [36]: c_m.by_key() │ │ │ │ │ Out[36]: │ │ │ │ │ -{'marker': ['s', 'o', 's', 'o', 's', 'o'], │ │ │ │ │ - 'color': ['r', 'r', 'g', 'g', 'b', 'b']} │ │ │ │ │ +{'color': ['r', 'r', 'g', 'g', 'b', 'b'], │ │ │ │ │ + 'marker': ['s', 'o', 's', 'o', 's', 'o']} │ │ │ │ │ This dict can be mutated and used to create a new _C_y_c_l_e_r with the updated │ │ │ │ │ values │ │ │ │ │ In [37]: bk = c_m.by_key() │ │ │ │ │ │ │ │ │ │ In [38]: bk['color'] = ['green'] * len(c_m) │ │ │ │ │ │ │ │ │ │ In [39]: cycler(**bk) │ │ │ │ │ -Out[39]: (cycler('marker', ['s', 'o', 's', 'o', 's', 'o']) + cycler('color', │ │ │ │ │ -['green', 'green', 'green', 'green', 'green', 'green'])) │ │ │ │ │ +Out[39]: (cycler('color', ['green', 'green', 'green', 'green', 'green', │ │ │ │ │ +'green']) + cycler('marker', ['s', 'o', 's', 'o', 's', 'o'])) │ │ │ │ │ ******** EExxaammpplleess_?¶ ******** │ │ │ │ │ We can use _C_y_c_l_e_r instances to cycle over one or more kwarg to plot : │ │ │ │ │ from cycler import cycler │ │ │ │ │ from itertools import cycle │ │ │ │ │ │ │ │ │ │ fig, (ax1, ax2) = plt.subplots(1, 2, tight_layout=True, │ │ │ │ │ figsize=(8, 4))