For example
- Code: Select all
TH1F *h1 = new TH1F("h1", "h1", 1000, -0.01, 10.01);
TH1F *h2 = new TH1F("h2", "h2", 1000, -2.01, 12.01);
How to plot these two histograms in a single plot ranging from -0.01 to 12.01, or whatever x-range I would like to?
h1->GetXaxis()->SetRangeUser(-1.0, 13.0) does not do the job (though on the y-axis there is no problem).
I hope there is another way then to switch to TMultiGraphs or to redefine the histogram size.
