Join histograms

Dear Rooters,

Sorry for this simple question. I have used this a long time ago but I forgot.

I want to plot 4 histograms on four pads on the same canvas. But I want to join their edges so that they have common x-axis and common y-axis with digits. What is the best way to do this. Is there any predefined method for this?

Thanks.

root [0] TCanvas *c1 = new TCanvas()
root [1] c1->Divide(4,1,0,0,0)
root [2] c1->cd(1)
root [3] gPad->DrawFrame(0,0,1,1)
root [4] c1->cd(2)
root [5] gPad->DrawFrame(0,0,1,1)
root [6] c1->cd(3)
root [7] gPad->DrawFrame(0,0,1,1)
root [8] c1->cd(4)
root [9] gPad->DrawFrame(0,0,1,1)