I have made profile histogram from 2D histogram. Now if i am trying to draw it:
hist11->Draw(“HIST PL”);
It draws the line and the marker through the whole X range of the histogram including empty bins at the end. Like this: home.fnal.gov/~hits/post.gif
However, if I use:
hist11->Draw(“PE”);
It draws only marker for the filled bins but does not connect them with the line.
Like this: home.fnal.gov/~hits/post1.gif
My goal is to conect markers with the line bur ignore empty bins at the end.
You got this line because your data are stored in an histogram. Therefore with option line L, C etc … all the bins are drawn, even the empty ones. To draw only a line through the few points you have, the simplest would be to use a TGraph and draw it on top of the histogram using option L. Do you know how to put these few points in a TGraph ?
Also, an other simple solution could be to set the histogram minimum to 0.