TH3F in colour?

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

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)

The available options for TH3 are listed here:

You can also use some GL options listed here:

in that case your macro should start with:

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)