Hello, I’m a beginner.
Could you tell me how to plot 2 histograms one above the other with no space in between and no Ox axis scale for the above histogram as they both have the same Ox.
Thank you.
see ${ROOTSYS}/tutorials/graphs/zones.C or example below
{
gROOT->Reset();
TCanvas c1("c1","multipads",900,700);
gStyle->SetOptStat(0);
c1.Divide(1,2,0,0);
TH1F h1("h1","test1",20,-3,3);
h1.FillRandom("gaus",100);
TH1F h2("h2","test2",20,-3,3);
h2.FillRandom("gaus",1000);
c1.cd(1);
gPad->SetTickx(2);
h1.Draw();
c1.cd(2);
gPad->SetTickx(2);
h2.Draw();
}
Rene
Thank You for quick response.