TGaxis

ROHLFS Reiner (Reiner.Rohlfs@obs.unige.ch)
Wed, 29 Oct 1997 16:47:07 +0100 (MET)


Hi Rooters,

I want to draw an axis. But the tick marks should be on the left side and the
labels should be on the right side.

Here is my test macro:
{
gROOT->Reset();

c1 = new TCanvas("c1","canvas",50,10,400,500);
c1->Range(0.0, 0.0, 2., 1.5);

axis1 = new TGaxis(0.3, 0.2, 0.3 , 1.3, 5., 8., 510, "");
axis1->Draw();

axis2 = new TGaxis(0.8, 0.2, 0.8 , 1.3, 5., 8., 510, "-");
axis2->Draw();

axis3 = new TGaxis(1.3, 0.2, 1.3 , 1.3, 5., 8., 510, "=");
axis3->Draw();

axis4 = new TGaxis(1.8, 0.2, 1.8 , 1.3, 5., 8., 510, "+");
axis4->Draw();
}

But axis1, axis2 and axis3 look all the same. The tick marks are on the right
side and the labels are on the left side.
Only axis4, which should be like the default one, has the tick marks on the
left side.

Is this a bug or do I miss something?

Thanks Reiner.