Dear ROOTers,
I am trying to change the labels of a logged axis after having set more labels to it, i.e.
h.GetXaxis().SetMoreLogLabels()
h_ratio.GetXaxis().ChangeLabel(-1,-1,-1,-1,kRed,-1,"Changed")
h_ratio.GetXaxis().ChangeLabel(-2,-1,-1,-1,kBlue,-1,"Changed")
h_ratio.GetXaxis().ChangeLabel(1,-1,-1,-1,kGreen,-1,"Changed")
pad2.SetLogx()
where I am based on ChangeLabel method does not work properly - #2 by couet. However, the labNum
value of the ChangeLabel
method relates to the one prior to .SetMoreLogLabels()
implementation.
Let me clarify: using same code block as above without pad2.SetLogx()
yields:
however when including pad2.SetLogx()
one gets:
which means the labels I set out to change are outside of the plot region. Is there any way to overcome this?
Many thanks in advance!
_ROOT Version: 6.22/06
_Platform: linuxx8664
_Compiler: gcc