| 1 |
// @(#)root/graf:$Name: $:$Id: TMultiGraph.cxx,v 1.10 2002/07/15 15:03:38 brun Exp $ |
// @(#)root/graf:$Name: $:$Id: TMultiGraph.cxx,v 1.11 2002/11/06 21:16:43 brun Exp $ |
| 2 |
// Author: Rene Brun 12/10/2000 |
// Author: Rene Brun 12/10/2000 |
| 3 |
|
|
| 4 |
/************************************************************************* |
/************************************************************************* |
| 86 |
void TMultiGraph::Add(TGraph *graph, Option_t *chopt) |
void TMultiGraph::Add(TGraph *graph, Option_t *chopt) |
| 87 |
{ |
{ |
| 88 |
// add a new graph to the list of graphs |
// add a new graph to the list of graphs |
| 89 |
|
// note that the graph is now owned by the TMultigraph. |
| 90 |
|
// Deleting the TMultiGraph object will automatically delete the graphs. |
| 91 |
|
// You should not delete the graphs when the TMultigraph is still active. |
| 92 |
|
|
| 93 |
if (!fGraphs) fGraphs = new TList(); |
if (!fGraphs) fGraphs = new TList(); |
| 94 |
graph->SetBit(kMustCleanup); |
graph->SetBit(kMustCleanup); |