From: Sylvestre Ledru Date: Mon, 13 Aug 2012 13:04:21 +0000 (+0200) Subject: Update the example to avoid the warning 'Warning : redefining function: f ... X-Git-Tag: 5.4.0-beta-3~84 X-Git-Url: http://gitweb.scilab.org/?p=scilab.git;a=commitdiff_plain;h=7699a61874f5eff7abf0cb6045ac0636ac4afef1 Update the example to avoid the warning 'Warning : redefining function: f . Use funcprot(0) to avoid this message' Change-Id: Iff73ad339ef7f0d4a4fca1efa16450b820578087 --- diff --git a/scilab/modules/graphics/help/en_US/3d_plot/plot3d2.xml b/scilab/modules/graphics/help/en_US/3d_plot/plot3d2.xml index afe889b..2035735 100644 --- a/scilab/modules/graphics/help/en_US/3d_plot/plot3d2.xml +++ b/scilab/modules/graphics/help/en_US/3d_plot/plot3d2.xml @@ -280,15 +280,15 @@ plot3d2(X,Y,Z); e=gce(); e.color_mode=4; // change color - f=e.data; - TL = tlist(["3d" "x" "y" "z" "color"],f.x,f.y,f.z,10*(f.z)+1); + f_data=e.data; + TL = tlist(["3d" "x" "y" "z" "color"],f_data.x,f_data.y,f_data.z,10*(f_data.z)+1); e.data=TL; e.color_flag=2; Examples - diff --git a/scilab/modules/graphics/help/ja_JP/3d_plot/plot3d2.xml b/scilab/modules/graphics/help/ja_JP/3d_plot/plot3d2.xml index 7602c4b..1f1c690 100644 --- a/scilab/modules/graphics/help/ja_JP/3d_plot/plot3d2.xml +++ b/scilab/modules/graphics/help/ja_JP/3d_plot/plot3d2.xml @@ -289,7 +289,7 @@ plot3d2(X,Y,Z); e=gce(); e.color_mode=4; // 色を変更 f=e.data; -TL = tlist(["3d" "x" "y" "z" "color"],f.x,f.y,f.z,10*(f.z)+1); +TL = tlist(["3d" "x" "y" "z" "color"],f_data.x,f_data.y,f_data.z,10*(f_data.z)+1); e.data=TL; e.color_flag=2; ]]> diff --git a/scilab/modules/graphics/help/pt_BR/3d_plot/plot3d2.xml b/scilab/modules/graphics/help/pt_BR/3d_plot/plot3d2.xml index 206718f..0a66005 100644 --- a/scilab/modules/graphics/help/pt_BR/3d_plot/plot3d2.xml +++ b/scilab/modules/graphics/help/pt_BR/3d_plot/plot3d2.xml @@ -291,8 +291,8 @@ plot3d2(X,Y,Z); // apenas no novo modo de gráficos e=gce(); e.color_mode=4; // mudando a cor -f=e.data; -TL = tlist(["3d" "x" "y" "z" "color"],f.x,f.y,f.z,10*(f.z)+1); +f_data=e.data; +TL = tlist(["3d" "x" "y" "z" "color"],f_data.x,f_data.y,f_data.z,10*(f_data.z)+1); e.data=TL; e.color_flag=2; ]]>