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)? Thomas On Tue, 12 Mar 2002, Christian Holm Christensen wrote: > Hi Thomas, > > Why don't you just make cuts: > > t200->Draw("x:z","abs(x - 2000) <= 400 && abs(y) <= 800") > > 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 > > On Tue, 12 Mar 2002 13:33:38 +0100 (CET) > Thomas Schietinger <Thomas.Schietinger@cern.ch> wrote > concerning "[ROOT] TTree::Draw into a predefined frame": > > Hello, > > > > I would like to draw the entries of an ntuple into > > a given frame. In PAW (sorry...) this was rather easy: > > > > null 2000 2800 -800 800 > > nt/plot 200.x%z ! ! ! ! s > > > > >From various examples I find online I gather that > > a TH2F and the "same" option should give me a similar > > result: > > > > TH2F *TA1xz = new TH2F("TA1xz","TA1 x-z",100,2000,2800,100,-800,800); > > TA1xz->Draw(); > > t200->Draw("x:z","","same"); > > > > However, this just gives me the empty histogram, > > no trace of the ntuple! (Canvas update doesn't help > > either.) Of course I can draw directly into the histogram, > > > > TH2F *TA1xz = new TH2F("TA1xz","TA1 x-z",100,2000,2800,100,-800,800); > > t200->Draw("x:z>>TA1xz"); > > TA1xz->Draw(); > > > > but then all structures are washed out by the histogram > > binning (unless I go to unreasonably fine binning). > > Another work-around would be the application of cuts, > > but I would *really* like to decide for myself where > > exactly my plot starts (important for comparisons etc.). > > So why does the first method above not work, or is there > > another way to solve my problem, 2D tree drawing with > > predefined boundaries? > > > > > Any advice much appreciated! Thanks, > > > > Thomas > > >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:45 MET