Hi Chris, On Wed, 15 Aug 2001 10:27:53 +0100 (BST) Chris Milne <phycm@phy.hw.ac.uk> wrote concerning ": [ROOT] Adjusting pad sizes": > Hi there, > > can anyone tell me how to adjust the size of pads. I have divided a new canvas > in to two parts, but I want one pad bigger that the other, i.e. > > ------------------------- > | | > | | > | | > ------------------------- > | | > | | > | | > | | > | | > | | > | | > | | > ------------------------- Simple: TCanvas* canvas = new TCanvas("c", "c"); TPad* upperPad = new TPad("upperPad", "upperPad", .005, .7525, .995, .995); TPad* lowerPad = new TPad("lowerPad", "lowerPad", .005, .005, .995, .7475); upperPad->Draw(); lowerPad->Draw(); See also chapter 9 of the Users Guide (yes, RTBM). Yours, Christian Holm Christensen ------------------------------------------- Address: Sankt Hansgade 23, 1. th. Phone: (+45) 35 35 96 91 DK-2200 Copenhagen N Cell: (+45) 28 82 16 23 Denmark Office: (+45) 353 25 305 Email: cholm@nbi.dk Web: www.nbi.dk/~cholm
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:57 MET