Normalization and Log scale

I’m trying to draw a bar chart normalized. Everything works ok but when i put Log scale in y axis the bars disappears and only remains a line in the upper part of the bar removed. Is there any option i should use or am i doing anything wrong?

Thanks.

I cannot reproduce this problem.
-Could you indicate your version of ROOT?
-Could yous end the shortest possible RUNNING script reproducing the problem?

Rene

The version of ROOT i’m using is 4.04/02.

Here is the code:

void problem()
{

    TCanvas *c1 = new TCanvas();
    c1->SetLogy(1);
    histo->DrawNormalized("bar");

}

where histo is the histogram you want to normalize and make a bar chart from.

I need a script that I can execute (that’s what I call a RUNNING script)

Rene

OK. I haven’t sent any root file because i didn’t want to make a very large message. I attach now a root file with some 1Dhistos (problem.root), and the script that runs over it is:

void problem()
{
TFile f(“problem.root”);
TCanvas *c1 = new TCanvas();
c1->SetLogy(1);
single44_0->DrawNormalized(“bar”);

}
problem.root (16.2 KB)

Thanks for reporting this problem and the short example.
Now fixed in the CVS head.

Rene

OK. Thanks a lot!