12 "A Simple Graph Example",200,10,700,500);
22 ymax[i] = 10*
sin(x[i]+0.2);
23 ymin[i] = 8*
sin(x[i]+0.1);
24 y[i] = 9*
sin(x[i]+0.15);
32 grshade->
SetPoint(n+i,x[n-i-1],ymin[n-i-1]);
virtual void SetLineWidth(Width_t lwidth)
TH1F * DrawFrame(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax, const char *title="")
Draw an empty pad frame with X and Y axis.
virtual void SetFillStyle(Style_t fstyle)
virtual void Draw(Option_t *chopt="")
Draw this graph with its current attributes.
virtual void SetGrid(Int_t valuex=1, Int_t valuey=1)
virtual void SetMarkerColor(Color_t mcolor=1)
virtual void SetFillColor(Color_t fcolor)
virtual void SetMarkerStyle(Style_t mstyle=1)
virtual void SetPoint(Int_t i, Double_t x, Double_t y)
Set x and y values for point number i.
A Graph is a graphics object made of two arrays X and Y with npoints each.