Hello,
I have seen few announcements of the class TGraph3D (for instance root.cern.ch/cgi-bin/print_hit_b … #first_hit ) . Has it been implemented already, but under a different name?
Regards
Michele
Hello,
I have seen few announcements of the class TGraph3D (for instance root.cern.ch/cgi-bin/print_hit_b … #first_hit ) . Has it been implemented already, but under a different name?
Regards
Michele
This is now implemented in class TGraph2D.
see: root.cern.ch/root/htmldoc/TGraph2D.html
Rene
Hello,
I wanted to plot 3D point, and if found TGraph2D very useful for that.
The problem that i am facing is that the color of the point is decided by the z value of the point.
In my application the color of the point is defined by another value, so i am having set of points
like
xval, yval, zval, col
So is there any function to change the color of point and set its color depending on “col” value supplied
Thanks
You need to put your data into a TNtuple and do:
ntuple->Draw("xval:yval:zval:col","","COL")