Draw three graphs with an exclusion zone.
The shaded areas are obtained with a fill for the graph and controlled with SetLineWidth
. SetLineWidth
for exclusion graphs is explained in the TGraphPainter documentation
As the graphs will be superposed on drawing, we add them to a TMultiGraph and then draw this one.
}
gr2->SetLineWidth(-2002);
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
A TGraph is an object made of two arrays X and Y with npoints each.
A TMultiGraph is a collection of TGraph (or derived) objects.
virtual void Add(TGraph *graph, Option_t *chopt="")
Add a new graph to the list of graphs.
void Draw(Option_t *chopt="") override
Draw this multigraph with its current attributes.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
- Author
- Olivier Couet
Definition in file gr106_exclusiongraph.C.