Re: [ROOT] Problems with TGaxis

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Sep 11 2002 - 11:01:09 MEST


Hi Brett,

I have fixed one problem in TGaxis::PaintAxis affecting axis5 in gaxis.C
and also another numerical rounding problem in THlimitsFinder::Optimize
affecting axis6 in gaxis.C.
I also fixed asome other cosmetics in TGaxis.

Rene Brun


On Tue, 10 Sep 2002, Brett Viren wrote:

> Hi,
> 
> I can't seem to reproduce the GIF in 
> 
> http://root.cern.ch/root/html/TGaxis.html
> 
> See attached for what I mean.  In particular "axis5" is wrong.  Is the
> GIF in the above HTML regenerated with each new ROOT version?
> 
> I haven't checked, but I suspect the problem is the code in
> TGaxis::PaintAxis which unpacks the number "ndiv" value.  It seems
> unnecessarily complex.  The following seems enough:
> 
>  n1 = ndiv%100;
>  n2 = (ndiv%10000 - n1)/100;
>  n3 = (ndiv - n2)/10000;
> 
> 
> This is with ROOT 3.03/08 from CVS Sep 3 on Debian x86.
> 
> -Brett.
> 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:09 MET