I have the following problem:
I book a histogram with non-uniform bins. When I draw the histogram, the tick marks on the X-axis are still drawn uniformly, which in this case simply makes no sense.
So my question is: How do I make ROOT draw the tick marks on bin boundaries, instead?
(And also - how to make this behaviour default, since it is the only meaningful one in the case of non-uniform bins?)
I don’t care too much about the tick labels (if neccessary I can set them explicitly).
I remember seeing an option that controls this beaviour some time ago, but I cannot find it now…
Here is my example script:
Double_t xbins[17]={0.0000,0.4173,0.7576,1.0978,1.4381,1.7784,2.1187,2.4590,2.7993, 3.1423,3.5197,3.8998,4.2800,4.6600,5.0403,5.4204,5.8762};
TH1F layers("layers","layers",16,xbins);
layers->Fill(0.1,1);
layers->Fill(0.9,2);
layers->Fill(2.2,2);
layers->Fill(2.9,1);
layers->Fill(4.6,3);
layers->Fill(5.2,1);
layers->Draw();