Re: [ROOT] Histogram Title

From: Olivier Couet (Olivier.Couet@cern.ch)
Date: Fri Dec 17 2004 - 16:53:23 MET


Hi Alessandro,

 We can consider to implement a new function SetTitleAlign() to define the 
title alignment with the same convention as the text alignment (a 2 digits 
integer): hv
where "v" is the vertical alignment and "h" the horizontal.
"v" can get the values 1 2 3 for left, center, and right
"h" can get the values 1 2 3 for bottom, middle and top

for instance the default alignment would be: 13 (left top)

Cheers,         Olivier


On Tue, 14 Dec 2004, Alessandro Thea wrote:

> Hi rooters,
> 
> I have a stupid question. As far as I understand, now is possible to fix 
> the position of the histogram title via TStile::SetTitleX() and 
> TStile::SetTitleY(), basically changing the position of the upper left 
> corner of the TPaveText that contains the title.
> Would it be possible to change the reference point from the upper left 
> corner to the center, for instance, or the right lower corner, or any 
> combination of those [left-center-right]-[up-center-bottom]?
> 
> Thanks,
> Alessandro
> 
> 

-- 
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910      
E-Mail: Olivier.Couet@cern.ch                            Phone:   +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7677155



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET