Re: [ROOT] Axis labels not positioned correctly in TGaxis

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Mar 08 2003 - 19:45:10 MET


Hi Glen,

for TGaxis, use the following calls:
  TGaxis *axis2 = new TGaxis(0,-0.8,0,0.8,1,10000,50510,"+G");
  axis2->SetLabelOffset(0.04);
  axis2->SetName("axis2");
  axis2->Draw();

For rootcint under RH8, which version of the compiler are you using?
I do not have access to RH8 for the time being.

Rene Brun

On 
Sat, 8 
Mar 2003, Glen R. Salo 
wrote:

> Hi,
> 
> In the following example, the labels generated by TGaxis in log scale
> are not positioned correctly.  Is this a bug or am I doing something
> wrong?  I am running ROOT version 3.05/02 with a recent (~1 week ago)
> CVS update on a RedHat Linux 8.0 PC.  
> 
> {
>   gROOT.Reset();
>   c1 = new TCanvas("c1","Examples of Gaxis",10,10,700,500);
>   c1->Range(-10,-1,10,1);
> 
>   TGaxis *axis1 = new TGaxis(-7,-0.8,-7,0.8,1,10000,50510,"+L");
>   axis1->SetName("axis1");
>   axis1->Draw();
> 
>   TGaxis *axis2 = new TGaxis(0,-0.8,0,0.8,1,10000,50510,"+G");
>   axis2->SetName("axis2");
>   axis2->Draw();
> 
> }
> 
> By the way, the latest CVS version fails to compile under Linux.  It
> gives the following errors (after a make distclean, ./configure ...):
> 
> build/unix/depend.sh ldap/src/G__LDAP.d "-pipe -Wall -Woverloaded-virtual -fPIC
> -Iinclude -DHAVE_CONFIG -D_REENTRANT" ldap/src/G__LDAP.cxx > ldap/src/G__LDAP.d
> Generating dictionary table/src/G__Table.cxx...
> utils/src/rootcint_tmp -f table/src/G__Table.cxx -c table/inc/tableDescriptor.h
> table/inc/TChair.h table/inc/TCL.h table/inc/TColumnView.h table/inc/TDataSet.h
> table/inc/TDataSetIter.h table/inc/TDsKey.h table/inc/TFileIter.h table/inc/TFileSet.h table/inc/TGenericTable.h table/inc/TIndexTable.h table/inc/TObjectSet.h
> table/inc/TPoints3D.h table/inc/TPointsArray3D.h table/inc/TPolyLineShape.h table/inc/TResponseIterator.h table/inc/TResponseTable.h table/inc/TTable3Points.h table/inc/TTableDescriptor.h table/inc/TTable.h table/inc/TTableIter.h table/inc/TTableMap.h table/inc/TTablePoints.h table/inc/TTableSorter.h table/inc/Ttypes.h table/inc/TVolume.h table/inc/TVolumePosition.h table/inc/TVolumeView.h table/inc/TVolumeViewIter.h table/inc/LinkDef.h
> make: *** [table/src/G__Table.cxx] Segmentation fault
> make: *** Deleting file `table/src/G__Table.cxx'
> 
> 
> Thanks for your help,
> 
> Glen
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET