On Tue, 12 Mar 2002 14:55:19 +0100 (CET) Thomas Schietinger <Thomas.Schietinger@cern.ch> wrote concerning "Re: [ROOT] TTree::Draw into a predefined frame": > Hi Christian, > > As I said, cuts don't give the desired effect. > What if I want to make the frame for my scatter plot > much bigger than the distribution at hand (for > comparison with another distribution for instance)? What about something like this: root[0] TNtuple* n = new TNtuple("N", "N", "x:y") root[1] TRandom* r = new TRandom root[2] for (Int_t i = 0; i < 10000; i++) n->Fill(r->Gaus(5, 2), r->Gaus(10, 3)) root[3] n->Draw("x:y") root[4] htemp->GetXaxis()->SetRangeUser(-10, 30) root[5] htemp->GetYaxis()->SetRangeUser(-10, 30) root[6] c1->Modified() root[7] c1->Update() 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 : Sat Jan 04 2003 - 23:50:45 MET