Skip to content

Instantly share code, notes, and snippets.

@tsherwen
Forked from thriveth/CBcolors.py
Created February 17, 2018 11:59
Show Gist options
  • Save tsherwen/268a3f2a4b638de299dabe0375970041 to your computer and use it in GitHub Desktop.
Save tsherwen/268a3f2a4b638de299dabe0375970041 to your computer and use it in GitHub Desktop.
A color blind/friendly color cycle for Matplotlib line plots. Might want to shuffle it around a bit more,but already not it gives kinda good contrasts between subsequent colors, and shows reasonably well in colorblind filters (though not in pure monochrome).
CB_color_cycle = ['#377eb8', '#ff7f00', '#4daf4a',
'#f781bf', '#a65628', '#984ea3',
'#999999', '#e41a1c', '#dede00']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment