TH1F histogram with Draw("L") option only with non-zero bins

Hello rooters,

I am trying to draw TH1F histogram, I used:


I want the line to draw ONLY the bins with non-zero values. i.e, I want the line to start with first bin that has a y-value>0.

I tried option (“C”), but the line still starts from zero.

Any suggestions?


This does not work with histograms. You should use a TGraph instead.

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