13 TCanvas *
c1 =
new TCanvas(
"c1",
"A Simple Graph Example", 200, 10, 700, 500);
16 c1->DrawFrame(0, 0, 2.2, 12);
21 for (i = 0; i <
n; i++) {
23 ymax[i] = 10 * sin(
x[i] + 0.2);
24 ymin[i] = 8 * sin(
x[i] + 0.1);
25 y[i] = 9 * sin(
x[i] + 0.15);
31 for (i = 0; i <
n; i++) {
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.