I’m obviously doing something daft, but cannot spot it. The relevant code is below. I’d like the regions between the lines shaded.
Double_t ya[27],xx[27];
TGraph grshade = new TGraph(227);
for (i=0;i<27;i++) {
xx[i]=60+i5;
ya[i]=exp(alphapow(log(xx[i]),2)+beta*log(xx[i])+gamma);
grshade->SetPoint(i,xx[i],ya[i]); //goes along the top line
grshade->SetPoint(27+i,xx[27-i-1],ya[27-i-1]-0.7); //comes back (<-) along the bottom line
}
grshade->SetFillStyle(3013);
grshade->SetFillColor(16);
grshade->Draw(“f”);