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)) 

enter image description here

hist_month.plot(kind='bar', figsize=(15,5)) 

enter image description here

i'd combine them obtain similar this:

enter image description here

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

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -