Making weighted histograms with continuous lines


Please read tips for efficient and successful posting and posting code

ROOT Version: 6.16/00
Platform: Ubuntu 18.04.4
Compiler: gcc 7.4.0


Hi,
I wanted to know if it’s possible to draw weighted histograms with continuous lines instead of only error bars. So, I want the type of histo as in below:

But, when plotting weighted histo, I’m getting, as I should I guess, as in below:

I’ve attached my code herewith.
Plot.C (2.3 KB)

Thanks for any help.

Regards,
Saumyen

   histPhotonPT[0]->Draw("HIST");
   histPhotonPT[1]->Draw("HIST sames");

Thanks a lot, Wile. It’s coming perfectly.

Regards,
Saumyen

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.