Skip to content

Instantly share code, notes, and snippets.

@granttremblay
Created December 27, 2017 21:11
Show Gist options
  • Save granttremblay/daa05be7734d587d60c49d46815d4712 to your computer and use it in GitHub Desktop.
Save granttremblay/daa05be7734d587d60c49d46815d4712 to your computer and use it in GitHub Desktop.
Explicitly select colors in a matplotlib.style color pallete. DUMB.
# Yes, this is the dumb way you have to select mpl.style (like 'ggplot') colors:
color_number = 2
color_choice = list(plt.rcParams['axes.prop_cycle'])[color_number]['color']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment