Resize TPad after two histograms are plotted

Hi all,

if I plot 2 histos in one TPad I have quite often the
trouble that if the second one has a bigger maximum
as the first histo, the second one is cut off. Is there
a way to tell the TPad to “rescale” so that both histos
can be seen?

I could write my own routine witch asks which histo is the
"bigger" one and draw this first. This however is quite
tedious. So I wonder if root offers a solution.

Cheers
Andi

Use a THStack, eg
TH1*h1, *h2;
THStack s(“s”,“title”);
s.Add(h1);
s.Add(H2);
s.Draw(“nostack”)

Rene