set correct current_entity 88/14288/3
Antoine ELIAS [Wed, 2 Apr 2014 07:14:21 +0000 (09:14 +0200)]
Change-Id: If16f9d154b9e5d7c46560d5a8d8de1d5b24346fa

scilab/modules/graphics/demos/2d_3d_plots/fgrayplot.dem.sce
scilab/modules/graphics/demos/2d_3d_plots/plot3d1.dem.sce
scilab/modules/graphics/macros/%_plot3d.sci
scilab/modules/graphics/macros/%_plot3d1.sci
scilab/modules/graphics/macros/fgrayplot.sci

index 9eb41a9..695a484 100644 (file)
@@ -6,20 +6,15 @@
 
 function demo_fgrayplot()
 
-    my_handle             = scf(100001);
+    my_handle = scf(100001);
     clf(my_handle,"reset");
     demo_viewCode("fgrayplot.dem.sce");
-
-    // DEMO START
-
-    my_plot_desc          = "fgrayplot";
+    my_plot_desc = "fgrayplot";
     my_handle.figure_name = my_plot_desc;
 
     fgrayplot();
-    xtitle(my_plot_desc," "," "," ");
-
-    // DEMO END
 
+    xtitle(my_plot_desc,"X","Y","Z");
 endfunction
 
 demo_fgrayplot();
index 2acf5c9..cf29b57 100644 (file)
@@ -6,20 +6,15 @@
 
 function demo_plot3d1()
 
-    my_handle             = scf(100001);
+    my_handle = scf(100001);
     clf(my_handle,"reset");
     demo_viewCode("plot3d1.dem.sce");
-
-    // DEMO START
-
-    my_plot_desc          = "plot3d1 : z=sin(x)*cos(y)";
+    my_plot_desc = "plot3d1 : z=sin(x)*cos(y)";
     my_handle.figure_name = my_plot_desc;
 
     plot3d1();
-    xtitle(my_plot_desc," "," "," ");
-
-    // DEMO END
 
+    xtitle(my_plot_desc,"X","Y","Z");
 endfunction
 
 demo_plot3d1();
index 1b6ea15..1bf0368 100644 (file)
@@ -22,8 +22,5 @@ function [] = %_plot3d()
     e=gce();
     e.color_flag = 1;
     f = gcf();
-    my_plot_desc  = "plot3d: z=sin(x)*cos(y)";
-    f.figure_name = my_plot_desc;
-    xtitle(my_plot_desc," "," "," ");
     f.color_map = jetcolormap(32);
 endfunction
index c26d586..87ac3be 100644 (file)
@@ -20,8 +20,5 @@ function [] = %_plot3d1()
     z = sin(x)*cos(x)';
     plot3d1(x, x, z, 70, 70);
     f = gcf();
-    my_plot_desc  = "plot3d1: z=sin(x)*cos(y)";
-    f.figure_name = my_plot_desc;
-    xtitle(my_plot_desc," "," "," ");
     f.color_map = jetcolormap(32);
 endfunction
index 3da068a..9a60837 100644 (file)
@@ -26,9 +26,6 @@ function []=fgrayplot(x,y,f,strf,rect,nax,void)
         deff("[z]=Surf(x,y)","z=cos(x).^2+sin(y).^2");
         fgrayplot(-%pi:0.1:%pi,-%pi:0.1:%pi, Surf);
         f = gcf();
-        my_plot_desc  = "fgrayplot";
-        f.figure_name = my_plot_desc;
-        xtitle(my_plot_desc," "," "," ");
         f.color_map = coolcolormap(100);
         return
     end