##### import library #########################
from rasterio.plot import show_hist
######### Set figure dimensions and axes ###################
fig, (axrgb, axhist) = plt.subplots(1, 2, figsize=(14,7))
################ plot raster ########################
show(src, ax=axrgb)
################ plot histogram of raster ########################
show_hist(src, bins=100, histtype='stepfilled',lw=0.0, stacked=False, alpha=0.3, ax=axhist)
################ set x axis limits of histogram ########################
plt.xlim(xmin=0, xmax = 50)
################ set x axis label of Histogram ########################
axhist.set_xlabel('Soil Mositure')
################ set y axis label of Histogram ########################
axhist.set_ylabel('Frequency')
################ set title of Histogram ########################
axhist.set_title('Maharashtra')