[Scilab-users] Answer: Is there a way, to fill the area between two non-intersecting 2d-curves with a colour?
Is there a way, to fill the area between two non-intersecting 2d-curves with a colour?
was my question from 9 November. With the help of [hidden email], here is the answer:
In detail, below.
xx=[(100:100:1500)';(100:100:1500)'];// input measurements M(15,4)after=[M(:,3);M(:,4)];before=[M(:,1);M(:,2)];xc=(25:30:1645)';// input bounding curves N(30,2)polyX=[xc;flipdim(xc,1)];polyY=[N(:,1);flipdim(N(:,2),1)];xfpoly(polyX,polyY,3);plot(xx,after,'r.');plot(xx,before,'k.');pos=22;xarrows([xc(pos)xc(pos)],[N(pos,2)N(pos,1)]);xtitle('Property as a Function of Temperature','temperature (°C)','PROPERTY');legend("The effect of the treatment","measured values after","measured values before");