[ROOT] TGaxis secondary tick marks problem

From: Bertalan Juhasz (Bertalan.Juhasz@cern.ch)
Date: Wed Dec 04 2002 - 14:16:25 MET


Dear Rootres,

I've discovered that if I create a TGaxis where the minimum and/or the
maximum value of the axis does not coincide with the primary tick marks
then the secondary tick marks are missing at the axis end; see this simple
script:

{
   TH2F *h2 = new TH2F("h","Axes",100,0,10,100,-2,2);
   h2->Draw();

   TF1 *f1=new TF1("f1","-x",-9.9,9.9);
   TGaxis *A1 = new TGaxis(0,2,10,2,"f1",510,"-");
   A1->Draw();
}

which produces the attached canvas. Is it a bug, is this behavour
intentional or am I doing something wrong?

I'm using ROOT 3.03/09 on RedHat 7.2.

BTW, are there plans to support TGaxis on logarithmic pads? It would be
_very_ useful. At least, purely horizontal or vertical axes should be
supported (this would cover 99.9% of all user cases).

Thank you in advance,

Bertalan






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