[ROOT] Title and Stat Font Size

From: wanke@uni-mainz.de
Date: Fri Jun 06 2003 - 11:10:59 MEST


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