Update the example to avoid the warning 'Warning : redefining function: f ... 82/8682/2
Sylvestre Ledru [Mon, 13 Aug 2012 13:04:21 +0000 (15:04 +0200)]
Change-Id: Iff73ad339ef7f0d4a4fca1efa16450b820578087

scilab/modules/graphics/help/en_US/3d_plot/plot3d2.xml
scilab/modules/graphics/help/ja_JP/3d_plot/plot3d2.xml
scilab/modules/graphics/help/pt_BR/3d_plot/plot3d2.xml

index afe889b..2035735 100644 (file)
             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;
         </scilab:image>
     </refsection>
     <refsection>
         <title>Examples</title>
-        <programlisting role="example"><![CDATA[ 
+        <programlisting role="example"><![CDATA[
 u = linspace(-%pi/2,%pi/2,40);
 v = linspace(0,2*%pi,20);
 X = cos(u)'*cos(v);
@@ -297,8 +297,8 @@ Z = sin(u)'*ones(v);
 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;
  ]]></programlisting>
index 7602c4b..1f1c690 100644 (file)
@@ -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;
  ]]></programlisting>
index 206718f..0a66005 100644 (file)
@@ -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;
  ]]></programlisting>