Re: fitbox

Rene Brun (Rene.Brun@cern.ch)
Thu, 22 Oct 1998 09:09:40 +0200


Otto Schaile wrote:
>
> apropos Nicks last request for fitboxes (which I find useful):
> it should be easy to let the user choose a font, e.g. an equal spaced
> fontallows aligning the "=" signs by adding spaces to variables names.
>

Otto,
You can already specify these parameters to the stats box:
Assume a pad containing an histogram with the stats box:
TPaveText *stats = (TPaveText*)gPad->GetPrimitive("stats");
stats->SetTextFont(82);
stats->SetTextSize(0.03);
stats->SetFillColor(42);

I agree that the "=" characters could be aligned. The only way to do it
correctly is to:
-draw the =
-draw the par name right adjusted to the =
-draw the value left adjusted to the =

Rene Brun