Johan Nilssons Lifestream

python: Plotting time series data against month

I have a several years data like below

import pandas as pd
import numpy as np

#generate random data
df = pd.Series(np.random.randint(100, size=87648))
df.index = pd.date_range("2001", "20101231 23:00", freq="1H")

I like to make a plot of the measured value against month, like the below example


How should I do it with matplotlib?

via Stack Overflow

blog comments powered by Disqus
Get the source for phplifestream at Github