Raimond Snellings wrote: > > Hi rooters, > > When I try to plot x vs y vs z in root > (in my case it comes from a star table > St_TableNtuple adcxyz(*pytfc); > adcxyz.Fill(*pytfc); > but I don't think this matters) > adcxyz.Draw("x:y:z") works and I can rotate it with the > mouse. However there are no axis labels and no axis at all. > Is there a way to turn this on. > Also when I do: Hi Raimond, Currently the axis are not drawn for 3-d scatter-plots. > > TH2S *dhist1 = new TH2S("dhist1","x vs y vs z",100,-150,0,100,-50,0) > root [55] adcxyz.Draw("x:y>>dhist1") > root [56] dhist1->Draw() > root [57] dhist1->GetEntries() > (Stat_t)9.890000000000e+02 > > this works however > > root [64] TH3S *dhist4 = new TH3S("dhist4","x vs y vs > z",100,-150,0,100,-50,0,100,0,200) > root [65] adcxyz.Draw("x:y:z>>dhist4") > root [66] dhist4->Draw() > root [67] dhist4->GetEntries() > (Stat_t)0.000000000000e+00 > > seems not work at all. > > The root version I am using is 2.21/06 This is another limitation with the 3-d projections. I did not implement yet the logic like for 1-d, 2-d to save the result in a 3-d histogram. Rene Brun
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:30 MET