Hi
I have that command on my rootlogon.C for a long time and it had always
worked. Anyway, I tried to use it properly, (with the right arguments),
it didn't work either, even after issuing gSystem->UseCurrentStyle()
and/or gROOT->ForceStyle(), that means, I could find no way to put a
title on the X axis. I solved the problem running my program again,
building the histograms on the style I want, before saving them on files.
Thanks.
Luiz
Rene Brun escreveu:
>Hi Luiz,
>
>See documentation of TStyle::SetTitleColor at:
>
>http://root.cern.ch/root/htmldoc/TStyle.html#TStyle:SetTitleColor
>
>Rene Brun
>
>Luiz Martins Mundim Filho wrote:
>
>
>>Hi
>>
>>Maybe I got another gStyle problem (I also had the Stat box problem). In
>>my rootlogon.C file I have one command like:
>>gStyle->SetTitleColor(0);
>>
>>when I created some histograms. After saving them on a file, I tried:
>>
>>h->GetXaxis()->SetTitle("axistitle");
>>
>>but it doesn't work. I tried to set the title text color again, copy the
>>histogram to another one and nothing worked, but it works for the Y axis.
>>
>>Root version: 3.05/03
>>OS: Linux RedHat 8.0
>>
>>I'm sending in attachment the root file with the histograms (it is small).
>>
>>Thanks
>>
>>Luiz
>>
>> --------------------------------------------------------------------------------
>> Name: ele_vtx.root
>> ele_vtx.root Type: unspecified type (application/octet-stream)
>> Encoding: base64
>>
>>
>
>
>
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET