jal
1
Hi, i’ve an ascii file with 500 rows and 500 columns. My aim is to draw a 3d colour histogram.
I can’t figure out how to get it out of the '50’s -> colz doesn’t work.
Attached is my macro (which compiles fine for 3d in black n white) and the input ascii file (~4mb) can be found at ns.ph.liv.ac.uk/~bp/sample/
It is called testin.txt.
Perhaps there is a (better) way to do this by using only two branches?
Any help would be much appreciated.
Cheers, Ben.
arrayit.C (1.17 KB)
couet
2
The available options for TH3 are listed here:
root.cern.ch/root/html/THistPainter.html#HP01d
You can also use some GL options listed here:
root.cern.ch/root/html/THistPainter.html#HP29
in that case your macro should start with:
gStyle->SetCanvasPreferGL(true);
jal
3
Hi, thanks for your quick (and useful) response.
The problem was using TH3F when I needed TH2F with the z axis being intensity.
Cheers, Ben.
arrayit.C (1.43 KB)