Created
December 8, 2019 16:51
-
-
Save viniroger/74d93dccaef8842c48149b924ad22590 to your computer and use it in GitHub Desktop.
Plot graphic from CSV
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
#!/usr/bin/env python3.7.4 | |
# -*- Coding: UTF-8 -*- | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
df = pd.read_csv('data.csv') | |
plt.title('AOD Pequim - Olimpíadas 2008 (221 a 237)') | |
plt.xlabel('Dia do ano') | |
plt.ylabel('AOD') | |
plt.plot(df['DIA'], df['AOD550'], marker='*', fillstyle='none', linestyle=':', color='r') | |
plt.grid() | |
plt.savefig('china_aod_olympics.png') | |
plt.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment