13 "A Simple Graph Example",200,10,700,500);
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);
33 grshade->
SetPoint(n+i,x[n-i-1],ymin[n-i-1]);
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
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)
Set the fill area style.
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)
Set the marker color.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
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.