RE: TGAxis->SetTickLength

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Fri, 8 Dec 2006 16:14:03 +0100

 

It is SetTickSize() (not Length)

-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch
[mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Pawan Kumar Netrakanti
Sent: Friday, December 08, 2006 3:55 PM
To: roottalk_at_pcroot.cern.ch
Subject: [ROOT] TGAxis->SetTickLength

Hi,

I draw an axis using TGAxis on my histogram. Then when I use to set the
axis->SetTickLength(val);

it gives an error message:
Error: Can't call TGaxis::SetTickLength(0.04) in current scope

However I am able to use all other functions like SetTickSize, SetLabelFont....on this drawn axis.

I am using ROOT Version 5.13/04 on Debain.

example code:



 TGaxis *axis = new
TGaxis(5.28319,-0.099,5.23819,2.18,-0.099,2.18,50213,"+L");
  axis->SetLabelColor(1);
  axis->SetNdivisions(507);
  axis->SetLabelOffset(0.001);
  axis->SetLabelSize(0.08);
  axis->SetLabelFont(42);
  axis->SetTitleSize(0.05);
  axis->SetDecimals(true);
  axis->SetTickSize(0.04);
  axis->SetTickLength(0.04);
  axis->Draw();
=====================

with best regards
Pawan



Pawan Kumar Netrakanti
Variable Energy Cyclotron Centre,
1/AF Bidhan Nagar
Salt Lake, Kolkata - 700064
Ph: +91 033 23371230 Ext(2301)
Received on Fri Dec 08 2006 - 16:14:27 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:02 MET