Since my plot contains many empty bins, I do not want to draw these, so as to have only bins with non-zero entries. Is there a way to do this?
The option “p” should, as stated in the THistPainter page," Draw current marker at each bin except empty bins". But I suppose that it does not consider the zero-entry bins as empty, since there is a a value of 0 and a non-null error? Any way around this?
The data graphs in RooPlotd are based in TGraphs rather than TH1, so TH1 plot option do not work.
However, it is very easy to suppress the zero bins: do RooPlot::SetMinimum(1e-5). This will eliminate
all zero content entries, yet the ‘0’ on the Y axis is still drawn.
I was wondering if there has been any development for this issue? All I want to do is set a range for the y axis which is in log scale. If I try set the range the empty bins cause issues.
I have tried to set limits and set range (The limit doesnt do anything… The range causes the log scale to break.) I guess the other option is to manually copy the contents of non-zero bins to a normal histogram and then do it that way? Seems a bit complicated for something simple no?
If anyone has a simpler solution I would greatly appreciate it