Drawing text labels on top X axis


My 2D histogram has text axis labels. I would like to draw the X axis labels above the top X axis. Is there a simple switch to do that? I cannot find it anywhere?



Look at the TAxis doc:

Hmm. Is this really the recommended way to do it?

What If I want to have the labels on both top and bottom?

I tried adding TGAxis but then I have problem with ticks. I don’t want them displayed and there’s no SetTickLength() method for TGAxis. Setting ndiv to 0 doesn’t help.

Thanks for your help.

can you send me a small running macro showing where you are now and I will modify it.

You can also simply draw a TLatex …