Fix test win64b: test_run('graphics', 'contour2d')
[scilab.git] / scilab / modules / graphics / macros / graypolarplot.sci
index 669f6d7..f9cb21f 100644 (file)
@@ -11,12 +11,11 @@ function graypolarplot(theta,rho,z,varargin)
 [lhs,rhs]=argn(0)
 if rhs<=0 then
   rho=1:0.2:4;theta=(0:0.02:1)*2*%pi;
-  z=30+round(theta'*(1+rho^2));
+  z=30+round(theta'*(1+rho.^2));
   clf();
   f=gcf();
   f.color_map=hotcolormap(128);
   f.background= 128;
-  f.foreground=1;
   a=gca();
   a.background= 128;
   a.foreground=1;
@@ -24,6 +23,10 @@ if rhs<=0 then
   return
 end
 
+if rhs<3 then
+  error(msprintf(gettext("%s: Wrong number of input argument(s): At least %d expected.\n"), "graypolarplot", 3));
+end
+
 
 R=max(rho)
 nv=size(varargin)