[Scilab-users] Answer: Is there a way, to fill the area between two non-intersecting 2d-curves with a colour?

Heinz Nabielek heinznabielek at me.com
Fri Nov 22 06:35:29 CET 2019


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 p.muehlmann at gmail.com, here is the answer:

“xfpoly”. 

In detail, below.

Best greetings
Heinz
_____________________________
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");


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20191122/f4b2a58c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Improvement.pdf
Type: application/pdf
Size: 32927 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20191122/f4b2a58c/attachment.pdf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20191122/f4b2a58c/attachment-0001.htm>


More information about the users mailing list