Re: [ROOT] exponents in scaling

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Nov 21 2002 - 17:11:58 MET


Hi Florian,

You have some control on the axis exponent with TGaxis::SetMaxDigits
Example
TH1F h("h","h",100,-2,2);
h.SetMaximum(1e5);
TGaxis::SetMaxDigits(3);
h.Draw();

Rene brun


On Thu, 21 Nov 2002, Florian Schopper wrote:

> 
> dear rooters,
> 
> is there a way to set the exponents in which the scale of y-axis is given?
> We would like to have always multiples of -3 (milli,mikro,nano,pico...).
> 
> cheers
>        Florian Schopper
> 
> 
> 
> ----------------------------------------------------------------------
> Dr. Florian Schopper                  office: MPI Halbleiterlabor
> 
> Ludwig-Merk str. 3                           Otto-Hahn-Ring 6 , Gebäude 72
> D-80805 München                              D-81739 München 
> Germany                                      Germany 
> 
> 
> fax home:   49/89/3226157                  fax HLL:   49/89/839400-13
> phone home: 49/89/32455680                 phone HLL: 49/89/839400-33
> 
>                      e-mail: fls@hll.mpg.de
>        http://www.gamma.mpe-garching.mpg.de/MEGA/mega.html 
> ----------------------------------------------------------------------
> 



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