I have a several years data like below
import pandas as pd
import numpy as np
#generate random data
np.random.seed(1)
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?