Hi,
I guess you should try to use TGraph2D.
http://root.cern.ch/root/html/TGraph2D.html
Cheers, O.Couet
From: owner-roottalk_at_pcroot.cern.ch
[mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of X. Lu, Peking Univ.
Sent: Monday, June 11, 2007 3:06 PM
To: roottalk
Subject: [ROOT] how to draw (x,y.z) point without binning x and y ?
Dear rooters,
I want to draw a graph for a group of 3-D data (x,y,z) in which the x and y values are not binned, i.e. the point in x-y plane is exactly a point. And moreover, the z are binned with 5 bins and in each bin the point is displayed by a specific color.
How can I do that ?
I can only think of TH2F and use SetBinContent. But the effect is not so satisfactory.
Thanks in advance !
Best Regards,
Xianguo
-- Take flight into the sky, beyond the moon, beyond my mind. Xianguo LU Physics Department, Peking University Beijing, China Tel: 0086-10-62753888(o)Received on Mon Jun 11 2007 - 15:28:39 CEST
This archive was generated by hypermail 2.2.0 : Tue Jun 12 2007 - 17:50:01 CEST