I have problems with the labels on the axis of histograms, they superimpose sometimes and the numbers cannot be read. Is there any option to avoid this? I have tried with SetNdivisions() but then I don't get the labels printed, just the ticks.
use TH1’s or TStyle’s SetTitleOffset. 1 is the default value; if you increase it by too much the title will move outside the canvas (i.e. disappear).
Thanks for your answers, but what I am trying to do is to reduce the number of labels on the axis, no their size, any solution for that?
Did you try to change the axis parameters using the axis editor? You can activate the editor via the canvas View/Editor menu. When you click on different objects in the canvas the available user interface shows up. Click on the axis and reduce the axis divisions via the editor (or label size, offcet, etc.). I hope you will get the axis’ view you want shortly and you can save all settings in a macro via File menu/Save.
Best regards, Ilka