| 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 |
/************************************************************************* |
/************************************************************************* |
| 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) { |
| 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 |
} |
} |