-
-
Save willyhagi/61acdaf6e9a8f604c3d8d83e8a539b17 to your computer and use it in GitHub Desktop.
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
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