axis labels

From: Margar Simonyan <Margar.Simonyan_at_cern.ch>
Date: Tue, 29 Aug 2006 11:44:44 +0200


Dear all

could anybody help with the following issue. I would like to put labels on the given bins of a histogram. The code look like this.

TString label;
label += 99;
bin = histo->GetXaxis()->FindBin(99);
histo->GetXaxis()->SetBinLabel(bin, label); histo->Draw();

after this lines the label is correct, but the label size is smaller than the default label size, the tick marks are not drown.

I tried

histo->GetXaxis()->ImportAttributes(histo->GetYaxis());

but it does not work. Any idea ?

I am using ROOT 5.12 under SLC3.

Thanks in advance,
Margar Received on Tue Aug 29 2006 - 11:48:08 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:00 MET