| 1004 |
Int_t i; |
Int_t i; |
| 1005 |
for (i=0;i<nch;i++) chopt[i] = toupper(option[i]); |
for (i=0;i<nch;i++) chopt[i] = toupper(option[i]); |
| 1006 |
chopt[nch] = 0; |
chopt[nch] = 0; |
|
Double_t *x, *y; |
|
| 1007 |
TGraph *g; |
TGraph *g; |
| 1008 |
|
|
| 1009 |
l = strstr(chopt,"A"); |
l = strstr(chopt,"A"); |
| 1046 |
uxmin = gPad->PadtoX(rwxmin); |
uxmin = gPad->PadtoX(rwxmin); |
| 1047 |
uxmax = gPad->PadtoX(rwxmax); |
uxmax = gPad->PadtoX(rwxmax); |
| 1048 |
} else { |
} else { |
|
rwxmin = 1e100; |
|
|
rwxmax = -rwxmin; |
|
|
rwymin = rwxmin; |
|
|
rwymax = -rwymin; |
|
| 1049 |
while ((g = (TGraph*) next())) { |
while ((g = (TGraph*) next())) { |
|
Int_t npoints = g->GetN(); |
|
|
x = g->GetX(); |
|
|
y = g->GetY(); |
|
|
for (i=0;i<npoints;i++) { |
|
|
if (x[i] < rwxmin) rwxmin = x[i]; |
|
|
if (x[i] > rwxmax) rwxmax = x[i]; |
|
|
if (y[i] > rwymax) rwymax = y[i]; |
|
|
if (y[i] < rwymin) rwymin = y[i]; |
|
|
} |
|
| 1050 |
g->ComputeRange(rwxmin, rwymin, rwxmax, rwymax); |
g->ComputeRange(rwxmin, rwymin, rwxmax, rwymax); |
| 1051 |
if (g->GetN() > npt) npt = g->GetN(); |
if (g->GetN() > npt) npt = g->GetN(); |
| 1052 |
} |
} |