Convert 2 canvas in to 2 histogam in the same plot

This thread is a duplicate of this one: Convert canvas to histogram in the same plot
Please use the other one.