I try to set Z axis limits for TH2 using SetRangeUser
, but it does not respect the upper limit. Actual axis limit is slightly higher than what I set and depends on draw options! When I try to set it to 1.2
, what I get is something like 1.22
with SURF1
drawing option and 1.26
with E
option.
c1.C (6.2 KB)
Hi,
try to use the SetMaximum method.
Cheers,
Stefano
SetMaximum
demonstrates the same behavior.
BTW, when I save the canvas to a .C
-file, it has ->SetMaximum(1.2)
in it, even though the actual limit is as described in the first post.
Can you provide a minimal working example?
I will try it on my laptop as soon as I can
S
I’ve attached the .C
-file to the first message.
gStyle->SetHistTopMargin(0.);
hist->SetMinimum(0.8);
hist->SetMaximum(1.2);