Re: Axis on 3d objs

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Dec 08 1999 - 21:53:15 MET


Hi Maurizio,
One of the new features of the recently released version 2.23/09
is the drawing of the 3-d axis for 3-d plots.
You can do, for example

Root > ntuple.Draw("x:y:z"); //this produces a 3-d scatter plot with axis
Root > TH3F h3("h3","a 3-d histogram",20,-1,1,10,-2,2,30,-3,3);
Root > h3.Draw(); //this draw 3-d axis only (empty histo).
Root > // fill the histogram
Root > h3.Draw(); //shows a 3-d scatter plot (view it with X3d or GL)
Root > h3.Draw("box"); //show 3-d boxes
Root > TPolyMarker3D pm3(...); //create a 3-d polymarker object
Root > pm3.Draw(); draw pm3 in teh current 3-d pad on top of histogram
Root > etc..

Rene Brun


On Wed, 8 Dec 1999, Maurizio Ungaro wrote:

> Hi all,
> I'm either try to plot a 3d histo
> or a TPolyMarker3d and in box case
> I get the right plot without axis or box.
> Is there a way to make them appear?
> Also, I didn't find anywhere a list of the possible
> otpions for TPolymarker3d::Draw(), or
> TPolymarker3d::PaintH3 etc.
> 
> Thanks a lot,
> Maurizio
> 



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:44 MET