You said you want the grayscale image in there too. images have the y axis going in the opposite direction, but you can set the ydir property. Anyway, just call imshow, then hold on, then plot() 3 times for the 3 histograms. The histogram plots will then be overlaid on the original grayscale image.
↧