image_output_1.png
import pandas as pd

webpth = 'http://www.files.benlaken.com/documents/'
monsoon = pd.read_csv('../input/Monsoon_data.csv', parse_dates=['Date'])
monsoon.index = monsoon.Date
monsoon = monsoon.drop('Date', 1)
olou = pd.read_csv('../input/Olou_counts.csv', parse_dates=['Date'])
olou.index = olou.Date
olou = olou.drop('Date', 1)

my_ts = plt.figure()
my_ts.set_size_inches(10, 5)
ax1 = my_ts.add_subplot(211)
ax2 = my_ts.add_subplot(212)
ax1.step(monsoon.index.date, monsoon.Precip, lw=1.0)
ax1.set_title('Monthly Precipitation and NM counts')
ax1.set_ylabel('Precipitation (mm)')
ax1.grid(True)
ax2.plot(olou.index.date, olou.Counts / 1000, 'r.', ms=3.0)
ax2.set_ylabel('Olou NM (cnt./min.$\\times10^{3}$)')
ax2.set_xlabel('Date')
ax2.grid(True)
plt.show(my_ts)
my_ts.savefig('Monthly_ts.png', dpi=300)