One entry in TProfile

Hello,

In a TProfile bins having one entry only
or bins having always the same value are not drawn.

I could not find any explanation of this bug (feature) in TProfile description. Could you give me some information about this.

Thanks.

Yury,

Could you send the shortest possible running script reproducing this problem?
You do not indicate which version of ROOT. In case you use an old version
please test your script with a recent version first.

Rene

Hello, Brun!

I use 4.00/04 version of ROOT.
There is my script

void script(void){
cnv = new TCanvas(“Name Canvas”,“Canvas Title”,100,200,800,600);
cnv->cd(1);
h = new TProfile(“Name Profile”, “Title Profile”, 10, 0, 4, 0, 3, “s”);
h->SetOption(“col”);

h->Fill(1,1);
h->Fill(1,2);

h->Fill(3,1);

h->Draw();

}

The result is placed here. You can see that only in bin=2 data are drawn. The data in bin=3 is not drawn, but entered to the histogram, because entries=3. It means all bins having one entry only or bins having always the same value are not drawn. I think it will be better to have a point in bin=3 without any error. Thank you in advance.

Thanks for sending this simple special case. I have now fixed the problem
in the CVS version.

Rene