I just noticed a problem with “text” option for a ntuple drawning.
I attach a very simple text file (test.txt) composed of 3 columns x,y,z (and 16 lines).
Here what I have done:
TNtuple *nt = new TNtuple(“nt”,“nt”,“x:y:z”)
nt->ReadFile(“test.txt”)
nt->Draw(“x:y”,“z”,text")
As you can see on the plot all the values of z are printed except when z=0
where no value is printed. I am not sure if this is a normal behavior of the
text option…
Does someone has an idea of what is going on?
By advance thank you
Cheers
Olivier
I am running root Version 5.32/00 under Mac Os X Lion 10.7.3
Thank you for your fast reply but using
gStyle->SetHistMinimumZero()
give me a plot with too much 0.
Is there an alternative between no 0. and too much 0.
thank you
Olivier
It would be nice the “hide 0” feature be available for 1D histograms too (i.e. not to draw the text above bins whose content is zero) which is not the case for the time being: