RE: Histogram title

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Sun, 19 Nov 2006 19:34:36 +0100


Try to define your titlie like #splitline{aaa}{bbb}

-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch
[mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of zampolli Sent: Sunday, November 19, 2006 7:13 PM
To: roottalk_at_pcroot.cern.ch
Subject: Re: [ROOT] Histogram title

Dear all,

    now that I have solved the problem of how to increase the dimension of the font in the title of a histogram, I have another question: is it possible to write the title on two different lines, or in this case do I have to use a TPaveText object?

    Thank you a lot.
    Best Regards,

           Chiara

Rene Brun ha scritto:
> Hi Chiara,
>
> Please read the documentation of TStyle::SetTitleFont
> http://root.cern.ch/root/htmldoc/TStyle.html#TStyle:SetTitleFont
>
> =====
> void SetTitleFont(Style_t font, Option_t *axis) if axis =="x" set the

> X axis title font if axis =="y" set the Y axis title font if axis
> =="z" set the Z axis title font any other value of axis will set the
> pad title font if axis="xyz" set all 3 axes ====
>
> Also note that if you select a font style in pixels (63), you should
> specify a number of pixels for the font size. See class description of

> TAttText at http://root.cern.ch/root/htmldoc/TAttText.html
>
> Rene Brun
>
>
> zampolli wrote:
>> Hi rooters,
>>
>> how can I modify the size of the title of a histogram? I have
>> tried with:
>>
>> gStyle->SetTitleFont(63);
>> gStyle->SetTitleFontSize(0.09);
>>
>> but the only thing which changes is the size of the pavetext where
>> the title is written, not the dimension of the font. Moreover, these
>> lines affect also the x-axis title, that I don't want to happen...
>> Could you please help me?
>>
>> Thank you a lot.
>> Best Regards,
>>
>> Chiara
>
Received on Sun Nov 19 2006 - 19:34:34 MET

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