Re: [ROOT] xaxis labels

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Aug 16 2001 - 22:21:30 MEST


In the attachment a small variant of the small example I posted recently.
See also: http://root.cern.ch/root/htmldoc/TAttText.html

Rene Brun

On Thu, 16 Aug 2001, joe robe wrote:

> thanks rene for the example how to draw individual
> lables on x axis, but this seems to work ONLY with
> that special example.
> 
> I tried it with tgraph and getxaxis->getbincenter
> returns anything but the center of a bin, i get VERY
> SMALL results like 0.11,0.22,0.33, values where there
> are no (visible) bins !
> 
> I try to write a class to draw that lables correct,
> whatever textsize is choosen, but the aligment seems
> not to work correctly.
> 
> Is it not sufficient to draw the text with HORIZONTAL
> ALIGN and the xvalue as the center of the bin ?
> 
> Joe
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
> 





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