DrawNormalized does not work properly

Dear experts,
when I used “DrawNormalized”, “SetRangeUser” does not work properly. If you run (1), you can see that the y max axis is not always 1, see (2). Do you see what is wrong?
Regards

(1)
http://calpas.web.cern.ch/calpas/plot.cc
http://calpas.web.cern.ch/calpas/rootstyle.cc
http://calpas.web.cern.ch/calpas/MuonRates_ttbar_road60.root
http://calpas.web.cern.ch/calpas/MuonRates_ttbar_road90.root
http://calpas.web.cern.ch/calpas/MuonRates_ttbar_road120.root

(2)

Hi, I didn’t try this yet but what if you do:

//hist[file][type][pt][var]->GetYaxis()->SetRangeUser(0., 1); // i.e. comment this
auto clone = hist[file][type][pt][var]->DrawNormalized("hist&same");
clone->GetYaxis()->SetRangeUser(0., 1);

Cheers,
Max

Dear Max,
it does not work. What I did should work right? Is there something wrong in y code?
Regards

Hi again,

are you sure? I just tested it and it works for me with v6.12/06, see the attached code.

Cheers,
Max

plot.cc (10.2 KB)

Dear Max,
you are right, it works fine, thank you!
Regards