Skip to content

Instantly share code, notes, and snippets.

@willyhagi
Created February 28, 2019 15:47
Show Gist options
  • Save willyhagi/61acdaf6e9a8f604c3d8d83e8a539b17 to your computer and use it in GitHub Desktop.
Save willyhagi/61acdaf6e9a8f604c3d8d83e8a539b17 to your computer and use it in GitHub Desktop.
fig, ax = plt.subplots(figsize=(12,5))
sns.lineplot(x=mbh99['Year'],
... y=mbh99['Temperature'],
... color='Black')
ax.axvspan(1000, 1200, alpha=0.25, color='red')
ax.axvspan(1400, 1800, alpha=0.25, color='blue')
ax.set_xlabel('Years')
ax.set_ylabel(r'Global Temperature Anomaly ($\degree$C)')
plt.tight_layout()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment