Show how to shade an area between two graphs.
c1->DrawFrame(0,0,2.2,12);
ymax[i] = 10*sin(
x[i]+0.2);
ymin[i] = 8*sin(
x[i]+0.1);
}
}
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
A TGraph is an object made of two arrays X and Y with npoints each.
void Draw(Option_t *chopt="") override
Draw this graph with its current attributes.
- Author
- Rene Brun
Definition in file gr101_shade_area.C.