From: Samuel GOUGEON Date: Mon, 17 Jul 2017 12:45:38 +0000 (+0200) Subject: fplot3d1(): fixes 'operation + []' warnings X-Git-Tag: 6.0.1~228 X-Git-Url: http://gitweb.scilab.org/?p=scilab.git;a=commitdiff_plain;h=96037d0553ca49fbb00149ccc425341bf2b259a7 fplot3d1(): fixes 'operation + []' warnings // Occurred when no option is used, as with: x1=-2:0.1:2; x2=-2:0.1:2; deff('z=f(x,y)','z=100*(y-x^2)^2+(1+x)^2'); clf(); fplot3d1(x1,x2,f); Change-Id: I7de277db3e21a1e4f828a02c5f0c6b932bd61a0e --- diff --git a/scilab/CHANGES.md b/scilab/CHANGES.md index 22ec5c8..b8e1caa 100644 --- a/scilab/CHANGES.md +++ b/scilab/CHANGES.md @@ -213,7 +213,7 @@ bounds selected out of the axes areas is now restored, after the Scilab 5.4 regr * `size` can now be overloadable for tlist lists, as it already could for mlist lists. * `gcd` now accepts `int64` and `uint64` integers. The input can now be any array instead of a row. * `cat` has been rewritten. It is now fast and can process heavy arrays at high dimensions. - +* `fplot3d1` remove warning messages when it was called without option. Help pages: ----------- diff --git a/scilab/modules/graphics/macros/fplot3d1.sci b/scilab/modules/graphics/macros/fplot3d1.sci index 2489bd9..0118b10 100644 --- a/scilab/modules/graphics/macros/fplot3d1.sci +++ b/scilab/modules/graphics/macros/fplot3d1.sci @@ -41,6 +41,7 @@ function []=fplot3d1(xr,yr,f,theta,alpha,leg,flag,ebox) if exists("leg" ,"local")==1 then opts=[opts,"leg=leg"] ,end if exists("flag" ,"local")==1 then opts=[opts,"flag=flag"] ,end if exists("ebox" ,"local")==1 then opts=[opts,"ebox=ebox"] ,end + if opts==[], opts = ""; end execstr("plot3d1(xr,yr,feval(xr,yr,f),"+strcat(opts,",")+")") endfunction