SetRangeUser(-1.0,1.) is not woking with DrawNormalized("hist",0.2847);

Dear,
I am using the following line in the code, but the SetRangeUser() function is not working.
H3clone is a cloned histogram. In normal histogram it’s working but when cloned and DrawNormalized(), it doesn’t work. Any idea?

Cheers,
Muhammad

 H3clone->DrawNormalized("hist",0.2847);
 H3clone->GetYaxis()->SetRangeUser(-1.0,1.);
 H1clone->DrawNormalized("hist same",(0.0028536));
 H2clone->DrawNormalized("hist same",0.0718);

_ROOT Version:_6.14/04
Platform: UBuntu 18.04.6 LTS
Compiler: Not Provided


TH1 *h = H3clone->DrawNormalized("hist", 0.2847);
h->GetYaxis()->SetRangeUser(-1., 1.);
gPad->Modified(); gPad->Update();

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.