<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Antoine,<br><br>Thanks for your reply.<br>Your suggestion worked perfectly.<br><br>Rgds<br>Rafael G.<br><br><br><div>> From: amonmayr@laas.fr<br>> To: users@lists.scilab.org<br>> Date: Tue, 21 May 2013 11:26:50 +0200<br>> Subject: Re: [Scilab-users] Reg :: Area Between two curves<br>> <br>> <br>> Le Dimanche 19 Mai 2013 04.49 CEST, Rafael Guerra <jrafaelbguerra@hotmail.com> a écrit: <br>> <br>> > Hi Antoine,I have tried in Scilab 5.4 Win7 your 2-year old example script: <br>> > x=[-10:10];y1=x+10;y2=x.*x; BetweenCurves(x,y1,y2);and got a in-between<br>> > curve filling result that seams to "leak" (see attached picture):<br>> > Scilab5p4_BetweenCurves.gif<br>> > <http://mailinglists.scilab.org/file/n4026721/Scilab5p4_BetweenCurves.gif> <br>> > Do you know whether this is a function limitation or a Scilab 5.4's feature<br>> > instead?Thanks and regards,Rafael G.<br>> <br>> Hi,<br>> <br>> It's a limitation of my function: I assume that one curve always stays above the other one.<br>> I quickly wrote this function to plot a fit, the upper bound of the fit confidence interval and the lower bound of the fit confidence interval.<br>> It is not designed for curves that cross each other.<br>> You might get better results with my function by plotting BetweenCurves(x,min(y1,y2),max(y1,y2)).<br>> <br>> Cheers,<br>> <br>> Antoine<br>> > <br>> > <br>> > <br>> > --<br>> > View this message in context: http://mailinglists.scilab.org/Reg-Area-Between-two-curves-tp3393261p4026721.html<br>> > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. <br>> <br>> <br>> <br>> <br>> _______________________________________________<br>> users mailing list<br>> users@lists.scilab.org<br>> http://lists.scilab.org/mailman/listinfo/users<br></div> </div></body>
</html>