[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 20335, Sat Oct 13 14:19:50 2007 UTC revision 20433, Mon Oct 22 13:12:26 2007 UTC
# Line 77  Line 77 
77     fMinimum   = -1111;     fMinimum   = -1111;
78  }  }
79    
80    
81  //______________________________________________________________________________  //______________________________________________________________________________
82  TMultiGraph::TMultiGraph(const TMultiGraph& mg) :  TMultiGraph::TMultiGraph(const TMultiGraph& mg) :
83    TNamed (mg),    TNamed (mg),
# Line 89  Line 90 
90     //copy constructor     //copy constructor
91  }  }
92    
93    
94  //______________________________________________________________________________  //______________________________________________________________________________
95  TMultiGraph& TMultiGraph::operator=(const TMultiGraph& mg)  TMultiGraph& TMultiGraph::operator=(const TMultiGraph& mg)
96  {  {
# Line 104  Line 106 
106     return *this;     return *this;
107  }  }
108    
109    
110  //______________________________________________________________________________  //______________________________________________________________________________
111  TMultiGraph::~TMultiGraph()  TMultiGraph::~TMultiGraph()
112  {  {
# Line 1047  Line 1050 
1050           uxmax   = gPad->PadtoX(rwxmax);           uxmax   = gPad->PadtoX(rwxmax);
1051        } else {        } else {
1052           while ((g = (TGraph*) next())) {           while ((g = (TGraph*) next())) {
1053              g->ComputeRange(rwxmin, rwymin, rwxmax, rwymax);              Double_t rx1,ry1,rx2,ry2;
1054                g->ComputeRange(rx1, ry1, rx2, ry2);
1055                if (rx1 < rwxmin) rwxmin = rx1;
1056                if (ry1 < rwymin) rwymin = ry1;
1057                if (rx2 > rwxmax) rwxmax = rx2;
1058                if (ry2 > rwymax) rwymax = ry2;
1059              if (g->GetN() > npt) npt = g->GetN();              if (g->GetN() > npt) npt = g->GetN();
1060           }           }
1061           if (rwxmin == rwxmax) rwxmax += 1.;           if (rwxmin == rwxmax) rwxmax += 1.;

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

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9