Skip to content

Instantly share code, notes, and snippets.

@zachwill
Created October 10, 2015 21:20
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zachwill/d5190af1a7f455dea45d to your computer and use it in GitHub Desktop.
Save zachwill/d5190af1a7f455dea45d to your computer and use it in GitHub Desktop.
A simple FiveThirtyEight palette for Seaborn plots.
"""
A simple FiveThirtyEight palette for Seaborn plots.
"""
import seaborn as sns
import matplotlib.pyplot as plt
five_thirty_eight = [
"#30a2da",
"#fc4f30",
"#e5ae38",
"#6d904f",
"#8b8b8b",
]
sns.set_palette(five_thirty_eight)
sns.palplot(sns.color_palette())
plt.show()
@arose13
Copy link

arose13 commented Oct 1, 2021

simple by fantastic! Thanks man

@zachwill
Copy link
Author

zachwill commented Oct 1, 2021

No problem! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment