[ROOT] Pads sharing the same Xaxis : problem for scaling text.

From: Patois Yannick (patois@ganil.fr)
Date: Thu Jan 18 2001 - 22:36:23 MET


Hi rooters,

I use a custom routine to create pads in one raw, with only one
scale at the bottom, like:

.---------.
|  Pad 3  |
|         |
 ---------
|  Pad 2  |
|         |
 ---------
|  Pad 1  |
|         |
|,-,-,-,-,| <- Scale
`---------'

I found out that the Pad labeled Pad1 couldnt be the same size as the 2
other because it had to allow space for the axis label and title, so if 
I want an identic frame size, pads cant be the same.
So I dont use TPad::Divide, but I create my pad one by one.

I works.

But a problem arise when I try to write some text into each pad :

The text in Pad1 is *bigger* than the one in the others, simply because
it get automatically scaled relatively to the pad size.

I dont really know what I can do, either I'm wrong and pads could be
made the same size somehow, or maybe there is a simple way to 'rescale'
things I wrote in a pad independantly of the pad's size.

For now, I just set the size of the writing a little bit differently for
the first pad, maybe there is a very simple way to deduce the scaling
factor according to the pad size and correct it ?

Could anyone help me ?

	Yannick



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:34 MET