[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 16279, Fri Sep 15 15:16:57 2006 UTC revision 16436, Thu Oct 5 13:50:11 2006 UTC
# Line 1  Line 1 
1  // @(#)root/graf:$Name:  $:$Id: TMultiGraph.cxx,v 1.33 2006/07/08 20:28:08 brun Exp $  // @(#)root/graf:$Name:  $:$Id: TMultiGraph.cxx,v 1.34 2006/09/15 15:16:57 brun Exp $
2  // Author: Rene Brun   12/10/2000  // Author: Rene Brun   12/10/2000
3    
4  /*************************************************************************  /*************************************************************************
# Line 146  Line 146 
146    
147    
148  //______________________________________________________________________________  //______________________________________________________________________________
149    void TMultiGraph::Add(TMultiGraph *multigraph, Option_t *chopt)
150    {
151       // add all the graphs in "multigraph" to the list of graphs.
152    
153       TList *graphlist = multigraph->GetListOfGraphs();
154       if (!graphlist) return;
155    
156       if (!fGraphs) fGraphs = new TList();
157    
158       TGraph *gr;
159       gr = (TGraph*)graphlist->First();
160       fGraphs->Add(gr,chopt);
161       for(Int_t i = 0; i < graphlist->GetSize(); i++){
162          gr = (TGraph*)graphlist->After(gr);
163          fGraphs->Add(gr,chopt);
164       }
165    }
166    
167    
168    //______________________________________________________________________________
169  void TMultiGraph::Browse(TBrowser *)  void TMultiGraph::Browse(TBrowser *)
170  {  {
171     // Browse multigraph.     // Browse multigraph.

Legend:
Removed from v.16279  
changed lines
  Added in v.16436

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9