I used the ax [1] as a subplot
f ,ax = plt.subplots(1,2,figsize = (30, 13),gridspec_kw={'width_ratios': [5, 1]})
The following code rotates the histogram 90 degrees clockwise. he also builds a fitting curve for silos. The key argument is orientation = u'horizontal
ax[1].hist(data,normed =1, bins = num_bin, color = 'yellow' ,alpha = 1, orientation=u'horizontal')
Jingkai xu
source share