Horizontal, vertical offset for x, y axis (respectively)

Dear ROOTers,

I have been using hist.GetXaxis().SetTitleOffset(some_float) and hist.GetYaxis().SetTitleOffset(some_float) regularly. These automatically set a vertical, horizontal offset when applied on the x-, y-axis, respectively.

However, I need to apply vertical offsets on my y-axes titles and horizontal offsets on my x-axes titles. I couldn’t find out how after having read past forum posts (e.g. Horizontal offset of x axis labels) and the reference.

Any help would be warmly welcomed!

Cheers,

Roy

_ROOT Version:_6.22/06
Platform: Linux
Compiler: Python 3.7.6


You can: TAxis::CenterTitle

If that’s not what you want … I simply add a sufficient number of “space characters” on the left side or on the right side (or on both sides) of the title string.

Thanks for the quick reply.
Just to clarify, there is no way to control numerically the horizontal, vertical offsets of the x-, y- axes (respectively), correct?

Can you provide a small example?

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