Re: [ROOT] xy-projection of TH3D

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Mar 23 2004 - 17:06:41 MET


Thomas,

You should do:
  h3.Project3D("yx");  y versus x
and not
  h3.Project3D("xy");  x versus y

Rene Brun


Thomas Bretz wrote:
> 
> Dear all,
> 
> is it possible that for a x,y-projection of a TH3 x and y is exchanged?
> (Using root 3.10/02)
> 
> Example:
> TH3D h3("","",10, -5, 5, 10, -5, 5, 10, -5, 5);
> TH2D h2("","",10, -5, 5, 10, -5, 5);
> h3.Fill(1, -1, 0);
> h2.Fill(1, -1);
> 
> Now Draw h2 and h3.Project3D("xy")
> 
> I would expect to see two times the same plot on the screen...
> 
> Thomas.



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET