Hi Niels, Centering the labels to the center of a bin was only possible in TGaxis (via option "M"). I have added a new function TAxis::CenterLabels. This function is visible in the TAxis context menu (current version in CVS). Note that this option does not make sense if the number of bins is not equal to the number of primary tick marks. Rene Brun On Mon, 4 Nov 2002, Niels van Bakel wrote: > How can I shift the labels of a TH1F x-axis to the center of a bin? > Applying "SetLabelOffset" to the x-axis, shifts the labels vertically. > Is there also a way to shift the labels horizontally? > > Niels >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:16 MET