RE: colz in a TH3

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Tue, 10 Apr 2007 08:33:57 +0200


Hi,

You will not get "the same result" using TH3 because a TH3 is a binned data set whereas when you draw a 3D scatter plot from an tree or an ntuple the points are plotted at the exact (x,y,z) position. The TH2 COLZ option has no equivalent for TH3. On TH3s you can use the options " ", "BOX" and "ISO". Recently these options have been improved a lot in the gl context. See the example $ROOTSYS/tutorials/gl/glbox.C. The option GLISO has been recently introduced. It offers the possibility to draw 3D contour plots.

Cheers, Olivier Couet

-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch
[mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Nico De Simone Sent: Thursday, April 05, 2007 9:12 PM
To: roottalk_at_pcroot.cern.ch
Subject: [ROOT] colz in a TH3

Dear ROOTers,
using CINT I can do:

root [1] tree->Draw("x:y:z:w", "", "colz"); root [2] htemp (const class TH3F*)0x335db50

I would like to get the same result using a selector that creates and fill TH3 objects. The problem is that the colz option is not available for the TH3 and the use of the TPolyMarker3D class it's not clear to me.

Thanks for any help.
Cheers,
Nico Received on Tue Apr 10 2007 - 08:34:03 CEST

This archive was generated by hypermail 2.2.0 : Tue Apr 10 2007 - 11:50:01 CEST