[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 20297, Wed Oct 10 16:20:03 2007 UTC revision 20335, Sat Oct 13 14:19:50 2007 UTC
# Line 1004  Line 1004 
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");
# Line 1047  Line 1046 
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           }           }

Legend:
Removed from v.20297  
changed lines
  Added in v.20335

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9