When I plot 2 graphs, histos on a canvas with the code below the graph plotted with “same” option may be out of range:
graph1.Draw("AP")
graph2.Draw("Psame")
That is why I OFTEN do it with like this:
graph1.Draw("AP")
graph2.Draw("Psame")
graph1.SetMaximum(1.05*max(graph1.GetMaximum(), graph2.GetMaximum()))
graph1.SetMinimum(1.05*min(graph1.GetMinimum(), graph2.GetMinimum()))
Because last 2 lines make code look not aesthetically nice and loady. Especially if I need to set the range for 5-6 graphs.
And setting up the range for each plot individually is so frustrating
I am just so annoyed doing this over and over again, so I am wondering, is it hard to implement, or is there a good reason why it is not implemented yet?
ROOT Version: 6.18