On Wed, 20 Oct 1999 KOSU_FOKIN@garbo.lucas.lu.se wrote: > How can I add a (Sub)Pad into a Canvas? If I have > Canvas->Divide(2,2) and then I call Canvas->Divide(3,2) > to add a new (Sub)Pad, I did not get what I want. I guess you want the following: root [4] c = new TCanvas("c","c"); root [5] c->Divide(2,2) root [6] c->cd(3) // make it the active pad root [7] TPad * c3 = gPad; root [8] c3->Divide(2,2) root [9] c3->cd(1) now you divided the main canvas into 4, then the lower left pad (3) gets again divided into 4, upper left (1) is active. Cheers Otto ---------------------------------------------------------------------------- Otto Schaile Sektion Physik der LMU Muenchen Phone: (+49 89)289 14070 Am Coulombwall 1, D-85748 Garching, Germany FAX: (+49 89)289 14072 EMail: Otto.Schaile@Physik.Uni-Muenchen.DE
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:41 MET