Contours

Chris Green (Christopher.Green@cern.ch)
Tue, 4 Mar 1997 09:45:02 +0100 (MET)


Hi again,

Well, managed to get a 2-D histogram filled from a tree and plotted with
contours, surfaces, etc. Now all I want to do is set my own contour
levels.

I've done eg:

Float_t lev1[2]={0.39,0.45};
h1.SetContour(2,lev1);
Float_t lev2[3];
h1.GetContour(lev2);
printf("%f %f",lev2[0],lev2[1])

All well and good so far, but if I do:

h1.Draw("surf");

I get the specified number of contours, but the contours are equidistant.
What am I doing wrong?

Thanks,

Chris.

---
Chris Green. HEP, University of Liverpool
MAIL Chris.Green@cern.ch, WWW http://hep.ph.liv.ac.uk/~chris/
+41 22 767 8075. On LTA at CERN.

---
"I wouldn't give it to a dog, and I *am* one." -- Gaspode the wonder dog (Terry Pratchett, Moving Pictures)