matplotlib - how to plot histogram and time series in python -
i have 2 different pandas dataframes obtained following graphs:
ar_month_mean.plot(figsize=(15,5))
hist_month.plot(kind='bar', figsize=(15,5))
i'd combine them obtain similar this:
you can pass ax
plotting methods, have multiple plots in same ax
. otherwise, each new plot in new axis:
import matplotlib.pyplot plt f = plt.figure(figsize=(15,5)) ax = plt.gca() ar_month_mean.plot(ax=ax, figsize=(15,5)) hist_month.plot(ax=ax, kind='bar', figsize=(15,5))
if post data, upload resulting figure.
Comments
Post a Comment