[ROOT] contour plot

From: Giacomo Bruno (Giacomo.Bruno@cern.ch)
Date: Mon Aug 05 2002 - 18:14:20 MEST


Hi
 I would like to draw a 2-d histogram in contour format showing the levels
 with lines of different colours. I get the lines as expected, but then I
would also like to draw a legend.
To this aim I need to retrieve in some way the colours id
of the lines. On the user's guide 3.02 at page 42 it is explained how to
access the TGraph objects that are created when drawing a contour plot, however when I
tried it everything happened (sometimes crashes, sometimes wrong results and
almost always running the same code gave different results). I was then obliged to
guess the colours and set them by hand. Does anyone have an idea on how to
solve this problem?
 Thanks in advance

cheers
 Giacomo



  -----------------------------------------
 |            Giacomo BRUNO                |
 |                                         |
 |            CERN			   |
 |	      EP Division		   |
 |					   |
 | mail:      40-2-B20                     |
 |            C.E.R.N.                     |
 |            CH - 1211 Geneva 23          |
 |            Switzerland                  |
 | e-mail:    Giacomo.Bruno@cern.ch        |
 | phone:     +41 22 76 71624		   |
  -----------------------------------------



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:03 MET