[ROOT] Getting axes from frame ...

From: matej batic (matej.batic1@guest.arnes.si)
Date: Tue Aug 19 2003 - 11:45:39 MEST


Hi, there!

I have two graphs on different ranges, so I create pad with frame in 
order to get them both printed out. The problem arises when I want to 
set titles to the axes. What I do is:

pad1 = new TPad("pad1","This is pad1",0.02,0.02,0.98,0.98,33);
pad1->SetFillColor(10);
pad1->DrawFrame(-0.5,170,10.5,360);
TFrame *frame= pad1->GetFrame();
frame->SetFillColor(10);

This works. The problem arises when I try something similar to

frame->GetXaxis()->SetTitle("test");

Any idea?

Thanks,
Matej

-- 
----
   Matej Batic
-----------------
Xerox does it again and again and again and ...



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