Split examples + add images for plot3d1 69/11269/2
Sylvestre Ledru [Fri, 12 Apr 2013 15:04:56 +0000 (17:04 +0200)]
Change-Id: Ic39cabbaa5ffa01ecaf98aeb1f7c5e784b5d580b

scilab/modules/graphics/help/en_US/3d_plot/plot3d1.xml
scilab/modules/graphics/help/ja_JP/3d_plot/plot3d1.xml
scilab/modules/graphics/help/pt_BR/3d_plot/plot3d1.xml
scilab/modules/helptools/etc/images_md5.txt
scilab/modules/helptools/images/plot3d1_1.png [new file with mode: 0644]
scilab/modules/helptools/images/plot3d1_2.png [new file with mode: 0644]
scilab/modules/helptools/images/plot3d1_3.png [new file with mode: 0644]
scilab/modules/helptools/images/plot3d1_4.png [new file with mode: 0644]
scilab/modules/helptools/images/plot3d1_5.png [new file with mode: 0644]
scilab/modules/helptools/images/plot3d1_6.png [new file with mode: 0644]

index f5120fc..2e4461c 100644 (file)
@@ -21,7 +21,6 @@
         <title>Calling Sequence</title>
         <synopsis>plot3d1(x,y,z,[theta,alpha,leg,flag,ebox])
             plot3d1(xf,yf,zf,[theta,alpha,leg,flag,ebox])
-            
             plot3d1(x,y,z,&lt;opts_args&gt;)
             plot3d1(xf,yf,zf,&lt;opts_args&gt;)
         </synopsis>
     </refsection>
     <refsection>
         <title>Examples</title>
-        <programlisting role="example"><![CDATA[ 
-// simple plot using z=f(x,y) 
-t=[0:0.3:2*%pi]'; z=sin(t)*cos(t'); 
-plot3d1(t,t,z) 
-// same plot using facets computed by genfac3d 
-[xx,yy,zz]=genfac3d(t,t,z); 
-clf(); 
-plot3d1(xx,yy,zz) 
-// multiple plots 
-clf(); 
-plot3d1([xx xx],[yy yy],[zz 4+zz]) 
-// simple plot with viewpoint and captions 
-clf() ;
-plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[2,2,3]) 
-// same plot without grid 
-clf() 
-plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[-2,2,3]) 
-// plot of a sphere using facets computed by eval3dp 
-deff("[x,y,z]=sph(alp,tet)",["x=r*cos(alp).*cos(tet)+orig(1)*ones(tet)";.. 
-"y=r*cos(alp).*sin(tet)+orig(2)*ones(tet)";.. 
-"z=r*sin(alp)+orig(3)*ones(tet)"]); 
-r=1; orig=[0 0 0]; 
-[xx,yy,zz]=eval3dp(sph,linspace(-%pi/2,%pi/2,40),linspace(0,%pi*2,20)); 
-clf() 
+        <programlisting role="example"><![CDATA[
+// simple plot using z=f(x,y)
+t=[0:0.3:2*%pi]';
+z=sin(t)*cos(t');
+plot3d1(t,t,z)
+ ]]></programlisting>
+<scilab:image>
+t=[0:0.3:2*%pi]';
+z=sin(t)*cos(t');
+plot3d1(t,t,z)
+</scilab:image>
+        <programlisting role="example"><![CDATA[
+// same plot using facets computed by genfac3d
+t=[0:0.3:2*%pi]';
+z=sin(t)*cos(t');
+[xx,yy,zz]=genfac3d(t,t,z);
+plot3d1(xx,yy,zz)
+ ]]></programlisting>
+<scilab:image>
+t=[0:0.3:2*%pi]';
+z=sin(t)*cos(t');
+[xx,yy,zz]=genfac3d(t,t,z);
+plot3d1(xx,yy,zz)
+</scilab:image>
+        <programlisting role="example"><![CDATA[
+// multiple plots
+t=[0:0.3:2*%pi]';
+z=sin(t)*cos(t');
+[xx,yy,zz]=genfac3d(t,t,z);
+plot3d1([xx xx],[yy yy],[zz 4+zz])
+ ]]></programlisting>
+<scilab:image>
+t=[0:0.3:2*%pi]';
+z=sin(t)*cos(t');
+[xx,yy,zz]=genfac3d(t,t,z);
+plot3d1([xx xx],[yy yy],[zz 4+zz])
+</scilab:image>
+        <programlisting role="example"><![CDATA[
+// simple plot with viewpoint and captions
+plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[2,2,3])
+ ]]></programlisting>
+<scilab:image>
+plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[2,2,3])
+</scilab:image>
 
+        <programlisting role="example"><![CDATA[
+// same plot without grid
+plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[-2,2,3])
+ ]]></programlisting>
+<scilab:image>
+plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[-2,2,3])
+</scilab:image>
+        <programlisting role="example"><![CDATA[
+// plot of a sphere using facets computed by eval3dp
+deff("[x,y,z]=sph(alp,tet)",["x=r*cos(alp).*cos(tet)+orig(1)*ones(tet)";..
+"y=r*cos(alp).*sin(tet)+orig(2)*ones(tet)";..
+"z=r*sin(alp)+orig(3)*ones(tet)"]);
+r=1; orig=[0 0 0];
+[xx,yy,zz]=eval3dp(sph,linspace(-%pi/2,%pi/2,40),linspace(0,%pi*2,20));
 plot3d(xx,yy,zz)
 e=gce();
 e.color_flag=1;
 scf(2);
 plot3d1(xx,yy,zz) // the 2 graphics are similar
  ]]></programlisting>
+<scilab:image>
+deff("[x,y,z]=sph(alp,tet)",["x=r*cos(alp).*cos(tet)+orig(1)*ones(tet)";..
+"y=r*cos(alp).*sin(tet)+orig(2)*ones(tet)";..
+"z=r*sin(alp)+orig(3)*ones(tet)"]);
+r=1; orig=[0 0 0];
+[xx,yy,zz]=eval3dp(sph,linspace(-%pi/2,%pi/2,40),linspace(0,%pi*2,20));
+plot3d(xx,yy,zz)
+</scilab:image>
     </refsection>
     <refsection role="see also">
         <title>See Also</title>
index 8d53675..006149a 100644 (file)
     </refsection>
     <refsection>
         <title>例</title>
-        <programlisting role="example"><![CDATA[ 
+
+        <programlisting role="example"><![CDATA[
 // z=f(x,y) によりプロットする
-t=[0:0.3:2*%pi]'; z=sin(t)*cos(t'); 
-plot3d1(t,t,z) 
+t=[0:0.3:2*%pi]';
+z=sin(t)*cos(t');
+plot3d1(t,t,z)
+ ]]></programlisting>
+<scilab:image>
+t=[0:0.3:2*%pi]';
+z=sin(t)*cos(t');
+plot3d1(t,t,z)
+</scilab:image>
+        <programlisting role="example"><![CDATA[
 // genfac3d により計算された小平面を用いて同様にプロット
-[xx,yy,zz]=genfac3d(t,t,z); 
-clf(); 
-plot3d1(xx,yy,zz) 
+t=[0:0.3:2*%pi]';
+z=sin(t)*cos(t');
+[xx,yy,zz]=genfac3d(t,t,z);
+plot3d1(xx,yy,zz)
+ ]]></programlisting>
+<scilab:image>
+t=[0:0.3:2*%pi]';
+z=sin(t)*cos(t');
+[xx,yy,zz]=genfac3d(t,t,z);
+plot3d1(xx,yy,zz)
+</scilab:image>
+        <programlisting role="example"><![CDATA[
 // 複数のプロット 
-clf(); 
-plot3d1([xx xx],[yy yy],[zz 4+zz]) 
+t=[0:0.3:2*%pi]';
+z=sin(t)*cos(t');
+[xx,yy,zz]=genfac3d(t,t,z);
+plot3d1([xx xx],[yy yy],[zz 4+zz])
+ ]]></programlisting>
+<scilab:image>
+t=[0:0.3:2*%pi]';
+z=sin(t)*cos(t');
+[xx,yy,zz]=genfac3d(t,t,z);
+plot3d1([xx xx],[yy yy],[zz 4+zz])
+</scilab:image>
+        <programlisting role="example"><![CDATA[
 // 視点とキャプションを指定してプロット
-clf() ;
-plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[2,2,3]) 
+plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[2,2,3])
+ ]]></programlisting>
+<scilab:image>
+plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[2,2,3])
+</scilab:image>
+
+        <programlisting role="example"><![CDATA[
 // グリッドを指定せずにプロット 
-clf() 
-plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[-2,2,3]) 
+plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[-2,2,3])
+ ]]></programlisting>
+<scilab:image>
+plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[-2,2,3])
+</scilab:image>
+        <programlisting role="example"><![CDATA[
 // eval3dp により計算される小平面により球をプロット
-deff("[x,y,z]=sph(alp,tet)",["x=r*cos(alp).*cos(tet)+orig(1)*ones(tet)";.. 
-"y=r*cos(alp).*sin(tet)+orig(2)*ones(tet)";.. 
-"z=r*sin(alp)+orig(3)*ones(tet)"]); 
-r=1; orig=[0 0 0]; 
-[xx,yy,zz]=eval3dp(sph,linspace(-%pi/2,%pi/2,40),linspace(0,%pi*2,20)); 
-clf() 
-
+deff("[x,y,z]=sph(alp,tet)",["x=r*cos(alp).*cos(tet)+orig(1)*ones(tet)";..
+"y=r*cos(alp).*sin(tet)+orig(2)*ones(tet)";..
+"z=r*sin(alp)+orig(3)*ones(tet)"]);
+r=1; orig=[0 0 0];
+[xx,yy,zz]=eval3dp(sph,linspace(-%pi/2,%pi/2,40),linspace(0,%pi*2,20));
 plot3d(xx,yy,zz)
 e=gce();
 e.color_flag=1;
 scf(2);
 plot3d1(xx,yy,zz) // 2つのグラフィックは同じ
  ]]></programlisting>
+<scilab:image>
+deff("[x,y,z]=sph(alp,tet)",["x=r*cos(alp).*cos(tet)+orig(1)*ones(tet)";..
+"y=r*cos(alp).*sin(tet)+orig(2)*ones(tet)";..
+"z=r*sin(alp)+orig(3)*ones(tet)"]);
+r=1; orig=[0 0 0];
+[xx,yy,zz]=eval3dp(sph,linspace(-%pi/2,%pi/2,40),linspace(0,%pi*2,20));
+plot3d(xx,yy,zz)
+</scilab:image>
     </refsection>
     <refsection role="see also">
         <title>参照</title>
index 0f05d37..c95ef6c 100644 (file)
     </refsection>
     <refsection>
         <title>Exemplos</title>
-        <programlisting role="example"><![CDATA[ 
+
+        <programlisting role="example"><![CDATA[
 // esboço simples utilizando z=f(x,y) 
-t=[0:0.3:2*%pi]'; z=sin(t)*cos(t'); 
-plot3d1(t,t,z) 
+t=[0:0.3:2*%pi]';
+z=sin(t)*cos(t');
+plot3d1(t,t,z)
+ ]]></programlisting>
+<scilab:image>
+t=[0:0.3:2*%pi]';
+z=sin(t)*cos(t');
+plot3d1(t,t,z)
+</scilab:image>
+        <programlisting role="example"><![CDATA[
 // mesmo esboço utilizando facetas computadas por genfac3d 
-[xx,yy,zz]=genfac3d(t,t,z); 
-clf(); 
-plot3d1(xx,yy,zz) 
+t=[0:0.3:2*%pi]';
+z=sin(t)*cos(t');
+[xx,yy,zz]=genfac3d(t,t,z);
+plot3d1(xx,yy,zz)
+ ]]></programlisting>
+<scilab:image>
+t=[0:0.3:2*%pi]';
+z=sin(t)*cos(t');
+[xx,yy,zz]=genfac3d(t,t,z);
+plot3d1(xx,yy,zz)
+</scilab:image>
+        <programlisting role="example"><![CDATA[
 // esboços múltiplos 
-clf(); 
-plot3d1([xx xx],[yy yy],[zz 4+zz]) 
+t=[0:0.3:2*%pi]';
+z=sin(t)*cos(t');
+[xx,yy,zz]=genfac3d(t,t,z);
+plot3d1([xx xx],[yy yy],[zz 4+zz])
+ ]]></programlisting>
+<scilab:image>
+t=[0:0.3:2*%pi]';
+z=sin(t)*cos(t');
+[xx,yy,zz]=genfac3d(t,t,z);
+plot3d1([xx xx],[yy yy],[zz 4+zz])
+</scilab:image>
+        <programlisting role="example"><![CDATA[
 // esboço simples com ponto de vista e legendas 
-clf() ;
-plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[2,2,3]) 
-// mesmo esboço sem grid
-clf() 
-plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[-2,2,3]) 
-// esboço de uma esfera utilizando facetas computadas por eval3dp 
-deff("[x,y,z]=sph(alp,tet)",["x=r*cos(alp).*cos(tet)+orig(1)*ones(tet)";.. 
-"y=r*cos(alp).*sin(tet)+orig(2)*ones(tet)";.. 
-"z=r*sin(alp)+orig(3)*ones(tet)"]); 
-r=1; orig=[0 0 0]; 
-[xx,yy,zz]=eval3dp(sph,linspace(-%pi/2,%pi/2,40),linspace(0,%pi*2,20)); 
-clf() 
+plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[2,2,3])
+ ]]></programlisting>
+<scilab:image>
+plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[2,2,3])
+</scilab:image>
 
+        <programlisting role="example"><![CDATA[
+// mesmo esboço sem grid
+plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[-2,2,3])
+ ]]></programlisting>
+<scilab:image>
+plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[-2,2,3])
+</scilab:image>
+        <programlisting role="example"><![CDATA[
+// mesmo esboço sem grid
+deff("[x,y,z]=sph(alp,tet)",["x=r*cos(alp).*cos(tet)+orig(1)*ones(tet)";..
+"y=r*cos(alp).*sin(tet)+orig(2)*ones(tet)";..
+"z=r*sin(alp)+orig(3)*ones(tet)"]);
+r=1; orig=[0 0 0];
+[xx,yy,zz]=eval3dp(sph,linspace(-%pi/2,%pi/2,40),linspace(0,%pi*2,20));
 plot3d(xx,yy,zz)
 e=gce();
 e.color_flag=1;
 scf(2);
 plot3d1(xx,yy,zz) // os dois gráficos são similares
  ]]></programlisting>
+<scilab:image>
+deff("[x,y,z]=sph(alp,tet)",["x=r*cos(alp).*cos(tet)+orig(1)*ones(tet)";..
+"y=r*cos(alp).*sin(tet)+orig(2)*ones(tet)";..
+"z=r*sin(alp)+orig(3)*ones(tet)"]);
+r=1; orig=[0 0 0];
+[xx,yy,zz]=eval3dp(sph,linspace(-%pi/2,%pi/2,40),linspace(0,%pi*2,20));
+plot3d(xx,yy,zz)
+</scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Ver Também</title>
index aaa6bf7..99dd0c7 100644 (file)
@@ -888,6 +888,12 @@ plot2d_6.png=4c8563bfa28b0731aab8b09361b61545
 plot2d_7.png=ae1cd4d3d5c3d0d7a4321adba5e3a224
 plot2d_8.png=54bcc043076eccf0df3a7363b9b45057
 plot2d_9.png=e0d3d935f99e7747b28561b3fd05eff
+plot3d1_1.png=773d7b1dad9f615a99292c162aaa48c9
+plot3d1_2.png=3200245986ed735d3f68d8b9c5bbba04
+plot3d1_3.png=2d040ce5eb82b122cca377f269ebe08f
+plot3d1_4.png=e9e592a5beaba64ac6e355a48b83e545
+plot3d1_5.png=c22d9c9d2e2373eaa6ef0b8860506aa4
+plot3d1_6.png=fc0620dc6f578711980018fed81d4475
 plot3d2_1.png=a6cfacc6af759d404f9dd74455cde45c
 plot3d3_1.png=baa919b1749a9cfdffe8e31d83e6970e
 plot3d_1.png=af70391f12ad43a0656abf467c522cb5
diff --git a/scilab/modules/helptools/images/plot3d1_1.png b/scilab/modules/helptools/images/plot3d1_1.png
new file mode 100644 (file)
index 0000000..1376b45
Binary files /dev/null and b/scilab/modules/helptools/images/plot3d1_1.png differ
diff --git a/scilab/modules/helptools/images/plot3d1_2.png b/scilab/modules/helptools/images/plot3d1_2.png
new file mode 100644 (file)
index 0000000..4b7111b
Binary files /dev/null and b/scilab/modules/helptools/images/plot3d1_2.png differ
diff --git a/scilab/modules/helptools/images/plot3d1_3.png b/scilab/modules/helptools/images/plot3d1_3.png
new file mode 100644 (file)
index 0000000..3ce15d4
Binary files /dev/null and b/scilab/modules/helptools/images/plot3d1_3.png differ
diff --git a/scilab/modules/helptools/images/plot3d1_4.png b/scilab/modules/helptools/images/plot3d1_4.png
new file mode 100644 (file)
index 0000000..a24a263
Binary files /dev/null and b/scilab/modules/helptools/images/plot3d1_4.png differ
diff --git a/scilab/modules/helptools/images/plot3d1_5.png b/scilab/modules/helptools/images/plot3d1_5.png
new file mode 100644 (file)
index 0000000..452a51b
Binary files /dev/null and b/scilab/modules/helptools/images/plot3d1_5.png differ
diff --git a/scilab/modules/helptools/images/plot3d1_6.png b/scilab/modules/helptools/images/plot3d1_6.png
new file mode 100644 (file)
index 0000000..25b7d72
Binary files /dev/null and b/scilab/modules/helptools/images/plot3d1_6.png differ