Hi Henrique,
In version 3.02, I added two new functions
- TAxis::SetNoExponent (also in the TAxis context menu)
with which you can enable/disable the 10^N notation
-TGAxis::SetMaxDigits. This is a static function that you can call
to specify the maximum number of digits in labels before switching
to the 10^N notation (global setting).
Rene Brun
Henrique de M. J. Barbosa - mestrado wrote:
>
> Dear Rooters,
>
> I'm having trouble getting tick labels in scientific notation in TGraph.
>
> I found TGraph has a GetXaxis() method and it returns a TAxis object but I
> couldn't find any method in TAxis that could do the job. But TAxis does
> tell that it references TGaxis to make a graphical representation of an
> histogram axis. Is it possible to get the referenced TGaxis??
>
> I'm asking this because I found in TGaxis a method called SetMaxDigits
> that seems to solve the problem:
>
> SetMaxDigits()
> (...)
> fgMaxDigits is the maximum number of digits permitted for the axis
> labels above which the notation with 10^N is used.
> (...)
>
> I think a specific method for choosing tick label notation (scientific,
> decimal, octal, etc...) would be very, very useful.
>
> Best regards,
>
> Henrique
> ****************************************
> State University at Campinas - BRASIL
> "Gleb Wathagin" Physics Institute
> Department of Cosmic Rays and Chronology
>
> Henrique Barbosa The Pierre Auger
> PhD Student Observatory
> ****************************************
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:12 MET