Problem with graphics of the histogram

Hi,

I am having a graphics problem with the axis label of the lower pad of an histogram plot.

You can see in the attached picture that the label is a bit shifted and a small part is cancelled.

Do you have any suggestion to fix this?

Thanks a lot, best
Giovanni (ATLAS experiment)

Hi Giovanni,

Sorry to read this did not work out of the box for you. Sometimes there are graphics settings which can alter the default, and hopefully correct, behaviour of ROOT.

Could you share with us a reproducer for this plot, as well as the platform on which it was ran and the root version used?

Cheers,
D

@couet

Hi,

I use the code in the python file attached (which is calling other small libraries which should do nothing on graphics)

I run on lxplus the code exactely as you see it and if I do on lxplus root --version I get this:

[gpadovan@lxplus950 PlottingTool]$ root --version

ROOT Version: 6.32.04

Built for linuxx8664gcc on Aug 14 2024, 00:00:00

From heads/master@tags/v6-32-04
plotHisto.py (36.9 KB)

Hi Giovanni,

Thanks. The script is not really a reproducer, since it depends on many other libraries we do not have access to: can you make it a standalone reproducer?

Best,
D

The 1st label of the top pad is hidden by the bottom pad. This doesn’t not happen when use TRatioPlot. I guess your script isn’t. TRatioPlot uses ChangeLabel to erase the first label of the top pad. You can do the same. You can see an example here: ROOT: TGaxis Class Reference

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