[ROOT] Tick Labels

From: Henrique de M. J. Barbosa - mestrado (hbarbosa@ifi.unicamp.br)
Date: Fri Dec 14 2001 - 00:34:37 MET


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:11 MET