Data-Sim comparison on same axis

Dear Rootians,

I am trying to put these two plots on the same axis for a comparison between data and simulations. I used DrawNormalized() however it still did not work.

please help Top plot is simulated while bottom plot is data


h1->Draw();
h2->Draw("SAME");

Hi Couet,

Thank you for your response, however I did that and this is where I would like the help to put them on the same axis because one is off even after DrawNormalized.

You should use THStack.

Hey Couet,

Can you give me an example using this function please?

You have plenty on the page linked to my previous post. Any way something like:

auto hs = new THStack;
hs->Add(h1);
hs->Add(h2);
hs->Draw();

Hey Couet,

Thank you

1 Like