Re: [ROOT] Title and Stat Font Size

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Jun 06 2003 - 12:27:10 MEST


Hi rainer,

I do not understand your mail. The title and stats box grow/shrink
proportionally with ethe pad size, like the axis labels.
What do you mean by "histogram size"? I assume you mean "the pad size"

Which version of ROOT are you using?

Please provide a simple script showing the problem.

Rene Brun

On 
Fri, 
6 Jun 2003 wanke@uni-mainz.de wrote:

> Dear ROOTers,
> 
> I'd like to have the font sizes of the histogram titles and
> statistics to be set to a fixed size, which scales with the histogram
> size, as this can be done e.g. for the axis labels and titles by
> SetLabelSize(0.06) or SetTitleSize(0.06), respectively.
> 
> I tried to use TStyle::SetTitleFontSize() and TStyle::SetStatFontSize(),
> but it seems to have no effect, the font size is still adjusted to the
> surrounding box rather than the box adjusts to the length of the text.
> 
> I could of course use TStyle::SetTitleH, W, etc. (which works), but then
> the font sizes vary from histogram to histogram, depending on the actual
> length of the text, making the looks of several histograms on one page
> really ugly.
> I guess there's a simple way to overcome this?
> 
> Cheers,
>                Rainer
> 
> -------------------------------------------------------------------------
>    Rainer Wanke
>    Institut fuer Physik
>    Johannes Gutenberg-Universitaet    Phone:+49+6131/39-25981
>    Staudinger Weg 7                   Fax:  +49+6131/39-25169
>    D-55099 Mainz
> -------------------------------------------------------------------------
> 
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET