[Scilab-users] Filled polygons from polylines

Samuel Gougeon sgougeon at free.fr
Fri Apr 9 19:58:37 CEST 2021


Or better, to avoid artfefacts on boundaries:

y  =  rand(1,20);
y2  =  rand(1,20)+1;
y3  =  rand(1,20)+2;
x  =  [1  1:20  20];
clf,  plot(x,  [0  y3  0])
plot(x,  [0  y2  0])
plot(x,  [0  y  0])
gca().children.children.fill_mode= "on"
gca().children.children.background= [color("grey30"); color("grey50") ; 
color("grey70")];


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20210409/3e97cba5/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ihleoghhfekhnfnb.png
Type: image/png
Size: 7601 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20210409/3e97cba5/attachment.png>


More information about the users mailing list