Example of macro illustrating how to superimpose two histograms with different scales in the "same" pad.
{
TCanvas *c1 =
new TCanvas(
"c1",
"hists with different scales",600,400);
TH1F *h1 =
new TH1F(
"h1",
"my histogram",100,-3,3);
TH1F *hint1 =
new TH1F(
"hint1",
"h1 bins integral",100,-3,3);
for (i=1;i<=100;i++) {
}
gPad->GetUxmax(),
gPad->GetUymax(),0,rightmax,510,
"+L");
}
- Author
- Rene Brun
Definition in file twoscales.C.