plot_hist function

Extract values from a raster to produce a histogram