How to draw th1 only with vertical error bars?

I’ve searched Internet and found
gStyle->SetErrorX(0.0001);
This may help me.

But I would like to draw several histograms by using “SAME” option.
I want to remove horizontal error bars for some histograms, but not for all.

What can I do for this situation? How can I set X bin error bars for specific th1 histogram? I couldn’t find proper function in th1 class reference page.

Thanks


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


THistPainter

1 Like

You can draw the histogram with the option “EX0”

1 Like

Thanks! Next time I will look closer at THistPainter…

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