Change default color values 53/14253/1
Vincent COUVERT [Mon, 31 Mar 2014 13:18:51 +0000 (15:18 +0200)]
Change-Id: I7402e0a85867b5de301aa2d306afe45eda354821

scilab/modules/cacsd/macros/zgrid.sci

index ddce5f1..a6258bc 100644 (file)
@@ -10,7 +10,7 @@
 function []=zgrid(varargin)
     // zgrid(["new",] [,Z,Wn [,colors]])
     // zgrid(Z,Wn [,"new"] [,colors])
-    defaultcolors=[4 12];
+    defaultcolors=[-1 -1];
     defaultbounds=[-1,-1;1,1];
     rhs=argn(2)
     new=%f
@@ -165,6 +165,10 @@ function []=zgrid(varargin)
         swap_handles(axes.children(k),axes.children(k+1))
     end
 
+    if nc==0 then
+        axes.data_bounds=defaultbounds
+    end
+
     fig.immediate_drawing = immediate_drawing;
 
 endfunction