I am using pandas and matplotlib to generate bar-graphs with lots of bars.
I know how to cycle through a list of selected colors (How to give a pandas/matplotlib bar graph custom colors).
The question is what colors to select so that my graph prints nicely on a paper (it is for a research paper). What I am most interested in is sufficient contrast between the columns and a selection of colors that looks pleasant. I would like to have multiple colors instead of gray-scale or single-hue colorschemes.
Are there any predetermined schemes to select from that people use?
In 1.5 matplotlib will ship with 4 new rationally designed color maps:
'viridis'(default color map as of 2.0)'magma''plasma''inferno'.The process of designing these color maps is presented in A Better Default Colormap for Matplotlib | SciPy 2015 .
The tool developed for this process can be installed by
pip install viscm.I would suggest the
cubehelixcolor map. It is designed to have correct luminosity ordering in both color and gray-scale.