Re: Histogram title

From: zampolli <Chiara.Zampolli_at_bo.infn.it>
Date: Sun, 19 Nov 2006 19:12:55 +0100


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:16:11 MET

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