You can do : TH1D* h=jyvx->ProjectionX("name",binmin,binmax) Vincent On Wednesday 19 November 2003 06:51, kirti@fnal.gov wrote: > Hi rooters, > > I could not find any example of taking a projection from a 2D scatter > plot. > I am making a 2d scatter plot and I would like to take its projection on > one of the axis. > I am doing following to make 2d scatter plot: > > TH2F *jyvx; > jyvx= new TH2F("jyvx","y vs. X",64,0,6.4,80,-4,4); > jyvx->Fill(x,y); > > Now I would like to know how to take projection on X or Y axis. > Thanks, > kirti > Thanks
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET