Update image to match example
[scilab.git] / scilab / modules / graphics / help / en_US / 3d_plot / param3d1.xml
index 303442c..2d93cb3 100644 (file)
@@ -236,19 +236,31 @@ param3d1([sin(t),sin(2*t)],[cos(t),cos(2*t)],..
          list([t/10,sin(t)],[3,2]),35,45,"X@Y@Z",[2,3])
 
 xdel(20);
-a=get("current_axes");//get the handle of the newly created axes
+a=gca();//get the handle of the newly created axes
 t=[0:0.1:5*%pi]';
-param3d1([sin(t),sin(2*t)],[cos(t),cos(2*t)],[t/10,sin(t)])
-a.rotation_angles=[65,75]; 
+param3d1([sin(t),sin(2*t)],[cos(t),cos(2*t)],[t/10,sin(t)]);
+a.rotation_angles=[65,75];
 a.data_bounds=[-1,-1,-1;1,1,2]; //boundaries given by data_bounds
 a.thickness = 2;
-h=a.children //get the handle of the param3d entity: an Compound composed of 2 curves
-h.children(1).foreground = 3 // first curve
+h=a.children; //get the handle of the param3d entity: an Compound composed of 2 curves
+h.children(1).foreground = 3; // first curve
 curve2 = h.children(2);
 curve2.foreground = 6;
 curve2.mark_style = 2;
  ]]></programlisting>
-        <scilab:image>param3d1();</scilab:image>
+        <scilab:image>
+            a=gca();
+            t=[0:0.1:5*%pi]';
+            param3d1([sin(t),sin(2*t)],[cos(t),cos(2*t)],[t/10,sin(t)]);
+            a.rotation_angles=[65,75];
+            a.data_bounds=[-1,-1,-1;1,1,2];
+            a.thickness = 2;
+            h=a.children;
+            h.children(1).foreground = 3;
+            curve2 = h.children(2);
+            curve2.foreground = 6;
+            curve2.mark_style = 2;
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>See Also</title>