<div dir="ltr"><div><div><div><div><div><div><div><div>Hi,<br><br></div>I have been trying to set up a custom color cycle in matplotlib using the matplotlibrc file. I have encountered a problem with the default matplotlibrc file provided with the installation from Arch llinux's package manager and the example provided in the online documentation at: <a href="https://matplotlib.org/users/customizing.html">https://matplotlib.org/users/customizing.html</a><br><br></div>When the lines controlling the axes.prop_cycle are uncommented:<br><br>axes.prop_cycle    : cycler('color',<br>                            ['1f77b4', 'ff7f0e', '2ca02c', 'd62728',<br>                              '9467bd', '8c564b', 'e377c2', '7f7f7f',<br>                              'bcbd22', '17becf'])<br><br><br>the following message is generated when I import matplotlib:<br><br>/usr/lib/python3.6/site-packages/matplotlib/__init__.py:1078: UserWarning: Illegal line #338<br>    "                            ['1f77b4', 'ff7f0e', '2ca02c', 'd62728',<br>"<br>    in file "/home/ejp/mpl_test/matplotlibrc"<br>  warnings.warn('Illegal %s' % error_details)<br>/usr/lib/python3.6/site-packages/matplotlib/__init__.py:1078: UserWarning: Illegal line #339<br>    "                              '9467bd', '8c564b', 'e377c2', '7f7f7f',<br>"<br>    in file "/home/ejp/mpl_test/matplotlibrc"<br>  warnings.warn('Illegal %s' % error_details)<br>/usr/lib/python3.6/site-packages/matplotlib/__init__.py:1078: UserWarning: Illegal line #340<br>    "                              'bcbd22', '17becf'])<br>"<br>    in file "/home/ejp/mpl_test/matplotlibrc"<br>  warnings.warn('Illegal %s' % error_details)<br>/usr/lib/python3.6/site-packages/matplotlib/__init__.py:1120: UserWarning: Bad val "cycler('color'," on line #337<br>    "axes.prop_cycle    : cycler('color',<br>"<br>    in file "/home/ejp/mpl_test/matplotlibrc"<br>    Key axes.prop_cycle: 'cycler('color',' is not a valid cycler construction: unexpected EOF while parsing (<string>, line 1)<br>  (val, error_details, msg))</div><div><br></div><div>The same error is generated if I import cycler using <br></div><div><br></div><div>import cycler</div><div><br></div><div>or <br></div><div><br></div><div>from cycler import cycler<br></div><div><br></div>I am using matplotlib 2.0.2 in python version 3.6.2 installed from the Arch Linux repositories. <br>The ouput of uname -a is :Linux tinker 4.12.12-1-ARCH #1 SMP PREEMPT Sun Sep 10 09:41:14 CEST 2017 x86_64 GNU/Linux<br><br></div>To reproduce:<br><br></div>Copy the default matplotlibrc<br></div>Uncomment the lines containing<br>axes.prop_cycle    : cycler('color',<br>                            ['1f77b4', 'ff7f0e', '2ca02c', 'd62728',<br>                              '9467bd', '8c564b', 'e377c2', '7f7f7f',<br>                              'bcbd22', '17becf'])</div><div>Run python in the directory containing the matplotlibrc file<br></div>Import matplotlib<br></div><div><div><br><div><div><div>Am I missing something obvious?</div><div>Thanks,</div><div>Emlyn<br></div></div></div></div></div></div>