Hi,
I’m trying to set my default color cycle in my matplotlibrc using axes.prop_cycle. The documentation (as far as I could find…) only gives examples like
axes.prop_cycle : cycler('color', 'bgrcmyk')
And then the comment below says, cryptically:
# as list of string colorspecs:
# single letter, long name, or
# web-style hex
But I have tried all sorts of variatns on:
axes.prop_cycle : cycler('color', ['#e41a1c', '#377eb8', '#4daf4a', '#ff7f00', '#a65628', '#f781bf', '#999999', '#984ea3', '#ffff33'])
But I always get an error upon importing matplotlib. Is there any doc on how to do this properly? Is this even supported?
Thanks,
Julian
Not at a computer to test, but try dropping the quotes.
···
On Sun, Dec 20, 2015, 20:56 Julian Irwin <julian.irwin@…287…> wrote:
Hi,
I’m trying to set my default color cycle in my matplotlibrc using axes.prop_cycle. The documentation (as far as I could find…) only gives examples like
axes.prop_cycle : cycler('color', 'bgrcmyk')
And then the comment below says, cryptically:
# as list of string colorspecs:
# single letter, long name, or
# web-style hex
But I have tried all sorts of variatns on:
axes.prop_cycle : cycler('color', ['#e41a1c', '#377eb8', '#4daf4a', '#ff7f00', '#a65628', '#f781bf', '#999999', '#984ea3', '#ffff33'])
But I always get an error upon importing matplotlib. Is there any doc on how to do this properly? Is this even supported?
Thanks,
Julian
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
You can’t use the hash symbol when doing colors as a hex in an rcfile. The rcfile parser is so simple that it treats it as a comment. Don’t drop the quotes.
Ben Root
···
On Mon, Dec 21, 2015 at 12:51 AM, Thomas Caswell <tcaswell@…287…> wrote:
Not at a computer to test, but try dropping the quotes.
On Sun, Dec 20, 2015, 20:56 Julian Irwin <julian.irwin@…287…> wrote:
Hi,
I’m trying to set my default color cycle in my matplotlibrc using axes.prop_cycle. The documentation (as far as I could find…) only gives examples like
axes.prop_cycle : cycler('color', 'bgrcmyk')
And then the comment below says, cryptically:
# as list of string colorspecs:
# single letter, long name, or
# web-style hex
But I have tried all sorts of variatns on:
axes.prop_cycle : cycler('color', ['#e41a1c', '#377eb8', '#4daf4a', '#ff7f00', '#a65628', '#f781bf', '#999999', '#984ea3', '#ffff33'])
But I always get an error upon importing matplotlib. Is there any doc on how to do this properly? Is this even supported?
Thanks,
Julian
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Ahh, the hashes were the problem!
Thanks for your help.
Julian
···
On Mon, Dec 21, 2015 at 8:45 AM, Benjamin Root <ben.v.root@…287…> wrote:
You can’t use the hash symbol when doing colors as a hex in an rcfile. The rcfile parser is so simple that it treats it as a comment. Don’t drop the quotes.
Ben Root
On Mon, Dec 21, 2015 at 12:51 AM, Thomas Caswell <tcaswell@…287…> wrote:
Not at a computer to test, but try dropping the quotes.
On Sun, Dec 20, 2015, 20:56 Julian Irwin <julian.irwin@…287…> wrote:
Hi,
I’m trying to set my default color cycle in my matplotlibrc using axes.prop_cycle. The documentation (as far as I could find…) only gives examples like
axes.prop_cycle : cycler('color', 'bgrcmyk')
And then the comment below says, cryptically:
# as list of string colorspecs:
# single letter, long name, or
# web-style hex
But I have tried all sorts of variatns on:
axes.prop_cycle : cycler('color', ['#e41a1c', '#377eb8', '#4daf4a', '#ff7f00', '#a65628', '#f781bf', '#999999', '#984ea3', '#ffff33'])
But I always get an error upon importing matplotlib. Is there any doc on how to do this properly? Is this even supported?
Thanks,
Julian
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users