Re: [ROOT] TGaxis options

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Feb 05 2002 - 10:22:14 MET


Hi Michael,

The options "+-u" cannot be specified with the PRO version of TAxis.
In the current development version in CVS, I have added a new function
TAxis::SetTicks(const char *option)
//  set ticks orientation
//  option = "+"  ticks drawn on the "positive side" (default)
//  option = "-"  ticks drawn on the "negative side" 
//  option = "+-" ticks drawn on both sides

In the PRO version, the equivalent of the option "U" can be obtained by calling
SetLabelOffset with a large value for the offset, eg
   axis.SetLabelOffset(999);

Rene Brun


  Michael Groys wrote:
> 
> Hello all,
> How can I use advanced TGaxis options (such as "+-" "U") with
> the histogram axis.
> I know that TAxis uses TGaxis to draw the axis, but I didn't find
> possibility
> to provide such options to TAxis.
> 
> Thanks,
>         Michael



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