Re: Contours

Rene Brun (Rene.Brun@cern.ch)
Wed, 05 Mar 1997 17:25:28 +0100


Chris Green wrote:
>
> 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?
>

Sorry for this late reply. Plenty of meetings this week.
What you do is correct.
Root version 0.9 supports only equidistant contours.
Root version 1.00 supports non-equidistant contours as well.

Rene Brun