Show how to shade an area between two graphs.
void gr101_shade_area() {
c1->DrawFrame(0,0,2.2,12);
ymax[i] = 10*sin(
x[i]+0.2);
ymin[i] = 8*sin(
x[i]+0.1);
}
}
}
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
virtual void SetPoint(Int_t i, Double_t x, Double_t y)
void Draw(Option_t *chopt="") override
Default Draw method for all objects.
- Author
- Rene Brun
Definition in file gr101_shade_area.C.