[root] / trunk / hist / hist / src / TMultiGraph.cxx Repository:
ViewVC logotype

Diff of /trunk/hist/hist/src/TMultiGraph.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1205, Wed Dec 13 15:13:57 2000 UTC revision 1500, Tue Jan 30 15:41:17 2001 UTC
# Line 1  Line 1 
1  // @(#)root/graf:$Name:  $:$Id: TMultiGraph.cxx,v 1.1 2000/10/12 13:27:23 brun Exp $  // @(#)root/graf:$Name:  $:$Id: TMultiGraph.cxx,v 1.2 2000/12/13 15:13:50 brun Exp $
2  // Author: Rene Brun   12/10/2000  // Author: Rene Brun   12/10/2000
3    
4  /*************************************************************************  /*************************************************************************
# Line 167  Line 167 
167    char *l;    char *l;
168    static char chopt[33];    static char chopt[33];
169    Int_t nch = strlen(option);    Int_t nch = strlen(option);
170    for (Int_t i=0;i<nch;i++) chopt[i] = toupper(option[i]);    Int_t i;
171      for (i=0;i<nch;i++) chopt[i] = toupper(option[i]);
172    chopt[nch] = 0;    chopt[nch] = 0;
173      Double_t *x, *y;
174    
175    l = strstr(chopt,"A");    l = strstr(chopt,"A");
176    if (l) {    if (l) {
# Line 194  Line 196 
196          rwymin = rwxmin;          rwymin = rwxmin;
197          rwymax = -rwymin;          rwymax = -rwymin;
198          while ((g = (TGraph*) next())) {          while ((g = (TGraph*) next())) {
199               Int_t npoints = g->GetN();
200               x = g->GetX();
201               y = g->GetY();
202               for (i=0;i<npoints;i++) {
203                  if (x[i] < rwxmin) rwxmin = x[i];
204                  if (x[i] > rwxmax) rwxmax = x[i];
205                  if (y[i] < rwymin) rwymin = y[i];
206                  if (y[i] > rwymax) rwymax = y[i];
207               }
208             g->ComputeRange(rwxmin, rwymin, rwxmax, rwymax);             g->ComputeRange(rwxmin, rwymin, rwxmax, rwymax);
209             if (g->GetN() > npt) npt = g->GetN();             if (g->GetN() > npt) npt = g->GetN();
210          }          }

Legend:
Removed from v.1205  
changed lines
  Added in v.1500

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9