Please pay your attention for the $ROOTSYS/tutorials/ntuple1.C to realize one can create the arbitrary number of the TPads at the arbitrary locations of the TCanvas.
TCanvas *c1 = new TCanvas("c1","The Ntuple canvas",200,10,700,780); TPad *pad1 = new TPad("pad1","This is pad1",0.02,0.52,0.48,0.98,21); TPad *pad2 = new TPad("pad2","This is pad2",0.52,0.52,0.98,0.98,21); TPad *pad3 = new TPad("pad3","This is pad3",0.02,0.02,0.48,0.48,21); TPad *pad4 = new TPad("pad4","This is pad4",0.52,0.02,0.98,0.48,1); pad1->Draw(); pad2->Draw();
TCanvas *c1 = new TCanvas("c1","The Ntuple canvas",200,10,700,780);
TPad *pad1 = new TPad("A","This is \"A\"", 0.0, 1./4, 1., 1. ); TPad *pad2 = new TPad("a", "This is \"a\"", 0.0, 0.0, 1./4, 1./4 ); TPad *pad3 = new TPad("b", "This is \"b\"", 1./4 0.0, 1.0, 1./4 );
Hope this helps, Valeri
From: owner-roottalk_at_pcroot.cern.ch on behalf of OKUMURA, Akira
Sent: Sat 8/12/2006 4:08 AM
To: RootTalk
Subject: [ROOT] Dividing a Canvas
Hello ROOTers,
How can I divide a canvas like as follows ?
+------+
| | | | A | |
A:B = 3:1
a:b = 1:3
Sincerely,
OKUMURA, Akira oxon_at_icrr.u-tokyo.ac.jp
Institute for Cosmic Ray Research, University of Tokyo
5-1-5 Kashiwanoha Kashiwa Chiba 277-8582 Japan
Phone/Fax : +81 4-7136-3153
Skype : okumura.akira
Received on Sun Aug 13 2006 - 18:09:22 MEST
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:00 MET