Re: [ROOT] contour plot

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Aug 05 2002 - 18:41:08 MEST


Could you send me evidence that the option (cont List) returning
a list of TGraphs does not work (C++ macro and a Root file)?

Rene Brun

On Mon, 5 Aug 2002, Giacomo Bruno wrote:

> 
> 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