Re: [ROOT] Axis labels

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Oct 17 2001 - 18:03:47 MEST


Hi Sven,

TGaxis is the class used to visualize TAxis objects. It can also be used
separately.

The SetMaxDigits should work for "Micros" and "Megas".
Could you send me your histogram for which it does not work?
Simply produce the canvas.root file with the menu item SaveAs canvas.root
and send me the canvas.root file as a mail attachement. May be you hit
some special case.

Rene Brun

Sven A. Schmidt wrote:
> 
> Rene,
> 
> I got 3.02.01 now but I wonder how TAxis and TGaxis are related. From my
> THF1 histogram I can get the x axis of type TAxis but I doesn't inherit
> from TGaxis. So I guess TGaxis is referenced by TAxis interally.
> 
> TGaxis::SetMaxDigits being static, I figured it might be a a global
> switch and called it from within the interpreter. But when I plot my
> histogram afterwards it still displays the exponential separately. It
> _is_ intended for micros, too, not just Megas, isn't it? Or is my way of
> using SetMaxDigits off?
> 
> Thanks,
> Sven
> 
> On Mittwoch, Oktober 17, 2001, at 04:08  Uhr, Rene Brun wrote:
> 
> > Hi Sven,
> >
> > I already implemented this functionality last month in version 3.02.
> > In the release notes, you can read:
> >
> > 2001-09-20 15:24  brun
> >
> >         * graf/: inc/TGaxis.h, src/TGaxis.cxx:
> >         Add a static member fgMaxDigits with the corresponding getter
> > and
> > setter.
> >         fgMaxDigits is the maximum number of digits permitted for the
> > axis
> >         labels above which the notation with 10^N is used.
> >         For example, to accept 6 digits number like 900000 on an axis
> >         call TGaxis::SetMaxDigits(6). The default value is 5.
> >
> > Note that TGaxis::SetMaxDigits is a static function



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