Graphics macros & demos: replace gcf with scf
[scilab.git] / scilab / modules / graphics / macros / fgrayplot.sci
index f53bf50..6f02353 100644 (file)
@@ -23,7 +23,10 @@ function []=fgrayplot(x,y,f,strf,rect,nax,void)
     [lhs,rhs]=argn(0);
 
     if rhs <= 0 then   // demo
-        f = gcf();
+        f = scf(100001);
+        my_plot_desc  = "fgrayplot";
+        f.figure_name = my_plot_desc;
+        xtitle(my_plot_desc," "," "," ");
         f.color_map = coolcolormap(100);
         deff("[z]=Surf(x,y)","z=cos(x).^2+sin(y).^2");
         fgrayplot(-%pi:0.1:%pi,-%pi:0.1:%pi, Surf);