Re: [ROOT] Help plotting a simple graph

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Sep 24 2004 - 12:49:42 MEST


Hi Marieke,

You do not see the second graph because it is outside the range of the first
graph.
Your first graph goes between 7.2 and 7.8
Your second graph between 6.38 6.45
Two solutions;
 -set a minimum for the y scale of the first graph, eg
  inputSpec->SetMinimum(6.3);

 -use a TMultigraph (see example in tutorial multigraph.C)

Rene Brun

Marieke Navin wrote:
> 
> Dear all,
> Can anyone offer advice for my simple graph? I have 3 columns of data: x,
> y1 and y2. I want to plot x versus y1 and x versus y2 (dashed line) on
> the same graph but at present it's only plotting the a versus y1. I know
> it's something simple,
> Many thanks,
> Marieke
> 
> --
> --------------------------------------------------------------------
> | Miss Marieke Navin                          wk:+441142223553     |
> | Particle Physics and Particle Astrophysics  fx:+441142728079     |
> | Department of Physics and Astronomy         hm:+441142584467     |
> | University of Sheffield                     mb:07919687122       |
> | Hicks Building, Hounsfield Road                                  |
> | Sheffield,                                                       |
> | S3 7RH, United Kingdom                                           |
> | M.Navin@Shef.ac.uk                                               |
> --------------------------------------------------------------------
> 
>   --------------------------------------------------------------------------------
>                               Name: width_beacongraphs.C
>    width_beacongraphs.C       Type: Plain Text (TEXT/PLAIN)
>                           Encoding: BASE64
>                        Description: code
> 
>                          Name: width_6face.dat
>    width_6face.dat       Type: Plain Text (TEXT/PLAIN)
>                      Encoding: BASE64
>                   Description: data



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET