Re: 3d points or 3d line with axis

From: Valeri Fine (Faine) (fine@bnl.gov)
Date: Wed Oct 20 1999 - 22:42:25 MEST


> Hello,
> how do I draw 3d points with coordinate axes or a 3d graph?
> I would like to do something similar to the TGraph class or the example in
> zdemo.C (in the tutorials), but in 3d.
> Asked in a different way: How can I get an empty 3d histogram to add my 3d
> point to?
> When I do
> TH3F *hr=new TH3F("hr","title",2,0.0,1.0,2,0.0,10.0,2,0.0,10.0);
> hr->Draw();
> the canvas is created, but nothing is drawn inside it.
> If I use TH2F instead, I cannot regulate zmin and zmax.
> Does anybody know what to do?

The macors:
http://root.cern.ch/root/html/examples/tornado.C.html

and 

 $ROOTSYS/tutorials/basic3d.C 

show how the classes:

http://root.cern.ch/root/html/TPolyMarker3D.html

http://root.cern.ch/root/html/TPolyLine3D.html

can be used.

         
More advanced example (drawing the primitive axis) can be found:

http://www.star.bnl.gov/STAR/html/comp_l/root/html/St_PolyLine3D.html#St_PolyLine3D:Axis

Hope this helps,
                   Valery



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