Skip to content

Instantly share code, notes, and snippets.

@zachwill
Created October 10, 2015 21:20
Show Gist options
  • 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()
@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