Hi Veysi,
See example below
Rene Brun
{
TH1F h("h","h",10,0,10);
h.SetMaximum(100000);
//see effect when activating one of the next two lines
//h.GetYaxis()->SetNoExponent(kTRUE);
//TGaxis::SetMaxDigits(3);
h.Draw();
}
The doc of TGaxis::SetMaxDigits says:
// static function to set fgMaxDigits
//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.
//fgMaxDigits must be greater than 0.
On Wed, 19 Jun 2002, Veysi E. Ozcan wrote:
>
> Hi,
>
> I have a small question about formatting of the y-axis in a 1-d histogram.
> When the numbers in the label become very large (say 6-7 digits long) ROOT
> automatically shows less digits in the label but puts a factor like
> (x10^??) on the left upper corner of the histogram space. My question is
> how one sets the length of digits that activate this property. (I just
> don't want to see 5 digit long numbers on the side of the histogram, but I
> couldn't do it.)
>
> Thanks,
>
> Veysi Erkcan Ozcan
> Stanford University
>
>
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:57 MET