| 1 |
// @(#)root/graf:$Name: $:$Id: TMultiGraph.cxx,v 1.16 2005/03/04 09:06:37 brun Exp $ |
// @(#)root/graf:$Name: $:$Id: TMultiGraph.cxx,v 1.17 2005/03/04 09:29:59 brun Exp $ |
| 2 |
// Author: Rene Brun 12/10/2000 |
// Author: Rene Brun 12/10/2000 |
| 3 |
|
|
| 4 |
/************************************************************************* |
/************************************************************************* |
| 155 |
// Options to draw a graph are described in TGraph::PainGraph |
// Options to draw a graph are described in TGraph::PainGraph |
| 156 |
// |
// |
| 157 |
// The drawing option for each TGraph may be specified as an optional |
// The drawing option for each TGraph may be specified as an optional |
| 158 |
// second argument of the Add function. |
// second argument of the Add function. You can use GetGraphDrawOption |
| 159 |
|
// to return this option. |
| 160 |
// If a draw option is specified, it will be used to draw the graph, |
// If a draw option is specified, it will be used to draw the graph, |
| 161 |
// otherwise the graph will be drawn with the option specified in |
// otherwise the graph will be drawn with the option specified in |
| 162 |
// TMultiGraph::Draw |
// TMultiGraph::Draw. Use GetDrawOption to return the option specified |
| 163 |
|
// when drawin the TMultiGraph. |
| 164 |
|
|
| 165 |
AppendPad(option); |
AppendPad(option); |
| 166 |
} |
} |
| 622 |
|
|
| 623 |
|
|
| 624 |
//______________________________________________________________________________ |
//______________________________________________________________________________ |
| 625 |
|
Option_t *TMultiGraph::GetGraphDrawOption(const TGraph *gr) const |
| 626 |
|
{ |
| 627 |
|
// Return the draw option for the TGraph gr in this TMultiGraph |
| 628 |
|
// The return option is the one specified when calling TMultiGraph::Add(gr,option). |
| 629 |
|
|
| 630 |
|
if (!fGraphs || !gr) return ""; |
| 631 |
|
TListIter next(fGraphs); |
| 632 |
|
TObject *obj; |
| 633 |
|
while ((obj = next())) { |
| 634 |
|
if (obj == gr) return next.GetOption(); |
| 635 |
|
} |
| 636 |
|
return ""; |
| 637 |
|
} |
| 638 |
|
|
| 639 |
|
//______________________________________________________________________________ |
| 640 |
void TMultiGraph::InitGaus(Double_t xmin, Double_t xmax) |
void TMultiGraph::InitGaus(Double_t xmin, Double_t xmax) |
| 641 |
{ |
{ |
| 642 |
//*-*-*-*-*-*Compute Initial values of parameters for a gaussian*-*-*-*-*-*-* |
//*-*-*-*-*-*Compute Initial values of parameters for a gaussian*-*-*-*-*-*-* |