TGAxis->SetTickLength

From: Pawan Kumar Netrakanti <pawan_at_rcf.rhic.bnl.gov>
Date: Fri, 8 Dec 2006 09:55:23 -0500 (EST)

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 - 15:55:39 MET

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