[ROOT] Problems with TGaxis

From: Brett Viren (bv@bnl.gov)
Date: Tue Sep 10 2002 - 18:04:01 MEST


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.




TGaxis demo



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