Table of Contents

How to Set the Number of Divisions in a TH1

Idea

It may sometimes be useful to set the number of divisions for the axes of a TH1 in ROOT.

How to

Do:

myhisto->GetXaxis()->SetNdivisions(ndiv, )

where ndiv = n1 + 100n2 + 10000*n3, where n1, n2, n3 are the number of primary, secondary and tertiary divisions. So 503 gives 3 main ticks, and 5 sub ticks between each of the main tick. And what is this option?