Hello Rene, Oh, this is completely satisfactory. Thanks for the help. Cheers. Chris >Date: Wed, 18 Sep 2002 21:19:13 +0200 (METDST) >From: Rene Brun <brun@pcbrun.cern.ch> >To: "Christopher B. Lirakis" <clirakis@bbn.com> >cc: roottalk@pcroot.cern.ch >Subject: Re: Fwd: Re: [ROOT] Stupid Scatterplot question. > >Hi Chris, > > > >On Wed, 18 Sep 2002, Christopher B. Lirakis wrote: > > > Hi Rene, > > This will fill directly from an Ntuple? > >Not fully automatic. See >http://root.cern.ch/root/htmldoc/TTreePlayer.html#TTreePlayer:DrawSelect >and look at section "How to obtain more info from TTree::Draw" > >example, assuming a Tree with variables u,v,w >if you do: tree.Draw("v:u","w>.5"), for example >this will fill internal Tree cache structures that you can retrieve >to build a TGraph* gr. >gr = new TGraph(tree->GetSelectedRows(),tree->GetV2(),tree->GetV1(); >now you can draw with your graph with, eg > gr->Draw("alp"); > >An option could be added to TTree::Draw to do this automatically. > >Rene Brun > > > >Chris > > >X-Authentication-Warning: pcroot.cern.ch: majordomo set sender to > > >owner-roottalk@root.cern.ch using -f > > >Date: Wed, 18 Sep 2002 15:07:30 +0200 (METDST) > > >From: Rene Brun <Rene.Brun@cern.ch> > > >To: "Christopher B. Lirakis" <clirakis@bbn.com> > > >cc: roottalk@pcroot.cern.ch > > >Subject: Re: [ROOT] Stupid Scatterplot question. > > >Sender: owner-roottalk@pcroot.cern.ch > > > > > >Hi Chris, > > > > > >Use a TGraph instead of a scatter-plot and plot your graph > > >with the options "lp" or "alp" if you want to compute the frame range > > >automatically. > > > > > >Rene Brun > > > > > >On Wed, 18 Sep 2002, Christopher B. Lirakis wrote: > > > > > > > If I am plotting a series of (x,y) pairs of points, is there an > option to > > > > connect adjacent points with a line segment when plotting? > > > > Regards > > > > Chris > > > > > > > > -Christopher B. Lirakis, Phd > > > > -High Performance Computing > > > > -BBN Technologies > > > > -127 John Clarke Rd > > > > -Middletown, RI 02842 > > > > - > > > > -(401) 849-2543 (voice) - Front Desk > > > > -(401) 848-3537 (voice) - Direct Line. > > > > -(401) 849-8611 (fax) > > > > -(401) 788-4607 (cell) > > > > -(401) 872-5689 (Pager) > > > > - > > > > -http://www.gte.com/AboutGTE/gto/bbnt/ > > > > > > > > -Christopher B. Lirakis, Phd > > -High Performance Computing > > -BBN Technologies > > -127 John Clarke Rd > > -Middletown, RI 02842 > > - > > -(401) 849-2543 (voice) - Front Desk > > -(401) 848-3537 (voice) - Direct Line. > > -(401) 849-8611 (fax) > > -(401) 788-4607 (cell) > > -(401) 872-5689 (Pager) > > - > > -http://www.gte.com/AboutGTE/gto/bbnt/ > > -Christopher B. Lirakis, Phd -High Performance Computing -BBN Technologies -127 John Clarke Rd -Middletown, RI 02842 - -(401) 849-2543 (voice) - Front Desk -(401) 848-3537 (voice) - Direct Line. -(401) 849-8611 (fax) -(401) 788-4607 (cell) -(401) 872-5689 (Pager) - -http://www.gte.com/AboutGTE/gto/bbnt/
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:10 MET