Skip to content

Instantly share code, notes, and snippets.

@viniroger
Created December 8, 2019 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viniroger/74d93dccaef8842c48149b924ad22590 to your computer and use it in GitHub Desktop.
Save viniroger/74d93dccaef8842c48149b924ad22590 to your computer and use it in GitHub Desktop.
Plot graphic from CSV
#!/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