I’m trying to track down the source of a crash in a drawing macro.
My question is: What is the “correct / ROOT approved” way to set the y axis range to fixed values, when drawing THStack objects.
Below is an example. The axis range for the top most figure should be fixed to
[0.0, 1000.0], however they are not. You can clearly see that the maximum y axis value exceeds 1000.0.
I suspect this is a bug, but I do not know for sure.
In this example I have used
stacks->SetMaximum(1000.0); stacks->SetMinimum(0.0); stacks->Draw();
I will try and update this with a MWE, however this will take some time.
In this next figure, I have removed calls to
->Draw() for the other objects drawn on the top figure, such that only the THStack is drawn.
I did this to check that nothing else is being drawn and “disturbing” the maximum axis value.