Created
October 10, 2015 21:20
-
-
Save zachwill/d5190af1a7f455dea45d to your computer and use it in GitHub Desktop.
A simple FiveThirtyEight palette for Seaborn plots.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
simple by fantastic! Thanks man