Thank you Adrien and Christophe.
The code provided by Christophe is specially simple and elegant, but assumes
the function to be strictly positive. Filled areas are different when I
change
x to x = linspace(-2*%pi,2*%pi,100).
For my purposes, it seems best to use xfpoly() for each region where the
function has a constant sign. The drawback is that color choices are not
as versatile as with plot().
JP Grivet
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users