Draw option "C" in histogram is not responding

_ROOT Version: 6.12/04
_Platform: Fedora 27

Dear co-rooters,

I am trying to plot a histogram from a root file, which is attached, using the option “C” by plotting


The problem is that the histogram is plotted with points instead of a line connecting them.

I opened the canvas editor and changed different options (i.e. line, smooth line, fill area) but none of these options seems to do anything.

Any idea how to solve this?

Thanks in advance

241Pu_1meV_massnumber.root (5.0 KB)

The problem is that your histogram has errors defined and histograms with errors are drawn with option “E” by default which overrides some other options including for example “C”.
To get the expected behavior add the option “HIST” to your draw option which overrides the default option “E”:

h1->Draw("HIST C"):

More information on this can be found here:

When an histogram has errors it is visualized by default with error bars. To visualize it without errors use the option “HIST” together with the required option (eg “hist same c”). The “HIST” option can also be used to plot only the histogram and not the associated function(s).

Thank you very much for your help!!!
It worked!

Best regards

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