Re: [ROOT] Change the number of digit in an TAxis

From: Rene Brun (brun@pcbrun.cern.ch)
Date: Wed Jul 28 2004 - 22:23:23 MEST


TGaxis::SetMaxDigits is a static function. See:
http://root.cern.ch/root/htmldoc/TGaxis.html#TGaxis:SetMaxDigits

simply call, eg
   TGaxis::SetMaxDigits(4);

Rene Brun


On Wed, 28 
Jul 2004, 
Antoine Cazes wrote:

> 
>   Hello rooters,
> 
>   I am trying to change the number of digit in the labels of a TAxis. I saw 
> that the method SetMaxDigit() of the Class TGaxis does it, but I don't know 
> how to acces this class from a TH1 or a TAxis.
> 
>   Thanks in advance for your help,
> 
> 	Antoine
> 
> ·.·´¯`·.·´¯`·.·´¯`·.·´¯`·.@
> 
>        _/_/    _/_/_/               _/       _/_/    _/
>     _/    _/ _/           *        _/     _/    _/  _/
>    _/_/_/_/ _/           * *      _/     _/_/_/_/  _/
>   _/    _/   _/_/_/              _/_/_/ _/    _/  _/_/_/
> 
>   Antoine Cazes              Laboratoire de L'accélérateur Linéaire
>   bat 200 bureau 108         BP 34
>   Tel:(+33) 1 64 46 84 29    91898 Orsay Cedex
>   Fax:(+33) 1 64 46 83 97
> 
> 
> 



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET