* Add images for the French version 95/9095/4
Sylvestre Ledru [Fri, 21 Sep 2012 09:11:34 +0000 (11:11 +0200)]
* Split some examples

Change-Id: I1cd6c7c2c50537b3b9dd4ba45249d046202e8db9

44 files changed:
scilab/modules/graphics/help/fr_FR/2d_plot/contourf.xml
scilab/modules/graphics/help/fr_FR/2d_plot/errbar.xml
scilab/modules/graphics/help/fr_FR/2d_plot/fec.xml
scilab/modules/graphics/help/fr_FR/2d_plot/fgrayplot.xml
scilab/modules/graphics/help/fr_FR/2d_plot/histplot.xml
scilab/modules/graphics/help/fr_FR/3d_plot/eval3d.xml
scilab/modules/graphics/help/fr_FR/3d_plot/eval3dp.xml
scilab/modules/graphics/help/fr_FR/3d_plot/genfac3d.xml
scilab/modules/graphics/help/fr_FR/3d_plot/geom3d.xml
scilab/modules/graphics/help/fr_FR/3d_plot/hist3d.xml
scilab/modules/graphics/help/fr_FR/3d_plot/milk_drop.xml
scilab/modules/graphics/help/fr_FR/annotation/legends.xml
scilab/modules/graphics/help/fr_FR/axes_operations/replot.xml
scilab/modules/graphics/help/fr_FR/axes_operations/subplot.xml
scilab/modules/graphics/help/fr_FR/axis/drawaxis.xml
scilab/modules/graphics/help/fr_FR/bar_histogram/bar.xml
scilab/modules/graphics/help/fr_FR/bar_histogram/barh.xml
scilab/modules/graphics/help/fr_FR/bar_histogram/barhomogenize.xml
scilab/modules/graphics/help/fr_FR/color_management/addcolor.xml
scilab/modules/graphics/help/fr_FR/geometric_shapes/xarc.xml
scilab/modules/graphics/help/fr_FR/geometric_shapes/xarcs.xml
scilab/modules/graphics/help/fr_FR/geometric_shapes/xarrows.xml
scilab/modules/graphics/help/fr_FR/geometric_shapes/xfarc.xml
scilab/modules/graphics/help/fr_FR/geometric_shapes/xfarcs.xml
scilab/modules/graphics/help/fr_FR/geometric_shapes/xfrect.xml
scilab/modules/graphics/help/fr_FR/geometric_shapes/xrect.xml
scilab/modules/graphics/help/fr_FR/geometric_shapes/xrects.xml
scilab/modules/graphics/help/fr_FR/pie/pie.xml
scilab/modules/graphics/help/fr_FR/polygon/xfpoly.xml
scilab/modules/graphics/help/fr_FR/polygon/xpoly.xml
scilab/modules/graphics/help/fr_FR/polygon/xpolys.xml
scilab/modules/graphics/help/fr_FR/polygon/xrpoly.xml
scilab/modules/graphics/help/fr_FR/text/math_rendering_features_in_graphic.xml
scilab/modules/graphics/help/fr_FR/text/stringbox.xml
scilab/modules/graphics/help/fr_FR/text/titlepage.xml
scilab/modules/graphics/help/fr_FR/text/xstring.xml
scilab/modules/graphics/help/fr_FR/text/xstringb.xml
scilab/modules/graphics/help/fr_FR/text/xstringl.xml
scilab/modules/graphics/help/fr_FR/transform/rotate.xml
scilab/modules/graphics/help/fr_FR/xgetech.xml
scilab/modules/graphics/help/fr_FR/xgrid.xml
scilab/modules/graphics/help/fr_FR/xnumb.xml
scilab/modules/graphics/help/fr_FR/xsegs.xml
scilab/modules/graphics/help/fr_FR/xsetech.xml

index 7cccac5..86fb987 100644 (file)
@@ -108,7 +108,11 @@ plot2d(x(im)',y(jm)',-9,"000")
         <title>Exemples</title>
         <programlisting role="example"><![CDATA[ 
 contourf(1:10,1:10,rand(10,10),5,1:5,"011"," ",[0,0,11,11])
-
+ ]]></programlisting>
+        <scilab:image>
+            contourf(1:10,1:10,rand(10,10),5,1:5,"011"," ",[0,0,11,11])
+        </scilab:image>
+        <programlisting role="example"><![CDATA[ 
 function z=peaks(x,y)
 x1=x(:).*.ones(1,size(y,'*'));
 y1=y(:)'.*.ones(size(x,'*'),1);
@@ -139,6 +143,37 @@ xset('fpf','');
 clf();
 contourf([],[],z,[-6:-1,-logspace(-5,0,10),logspace(-5,0,10),1:8]);
  ]]></programlisting>
+        <scilab:image>
+            function z=peaks(x,y)
+            x1=x(:).*.ones(1,size(y,'*'));
+            y1=y(:)'.*.ones(size(x,'*'),1);
+            z =  (3*(1-x1).^2).*exp(-(x1.^2) - (y1+1).^2) ... 
+            - 10*(x1/5 - x1.^3 - y1.^5).*exp(-x1.^2-y1.^2) ... 
+            - 1/3*exp(-(x1+1).^2 - y1.^2) 
+            endfunction
+            
+            function z=peakit()
+            x=-4:0.1:4;y=x;z=peaks(x,y);
+            endfunction
+            
+            z=peakit();
+            
+            levels=[-6:-1,-logspace(-5,0,10),logspace(-5,0,10),1:8];
+            m=size(levels,'*');
+            n = fix(3/8*m);
+            r = [(1:n)'/n; ones(m-n,1)];
+            g = [zeros(n,1); (1:n)'/n; ones(m-2*n,1)];
+            b = [zeros(2*n,1); (1:m-2*n)'/(m-2*n)];
+            h = [r g b];
+            xset('colormap',h);
+            xset('fpf',' ');
+            clf();
+            contourf([],[],z,[-6:-1,-logspace(-5,0,10),logspace(-5,0,10),1:8],0*ones(1,m))
+            
+            xset('fpf','');
+            clf();
+            contourf([],[],z,[-6:-1,-logspace(-5,0,10),logspace(-5,0,10),1:8]);
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index c55671f..e88a234 100644 (file)
@@ -40,6 +40,12 @@ y=[sin(t) cos(t)]; x=[t t];
 plot2d(x,y)
 errbar(x,y,0.05*ones(x),0.03*ones(x))
  ]]></programlisting>
+        <scilab:image>
+            t=[0:0.1:2*%pi]';
+            y=[sin(t) cos(t)]; x=[t t];
+            plot2d(x,y)
+            errbar(x,y,0.05*ones(x),0.03*ones(x))
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index eff6b5c..0b541de 100644 (file)
@@ -119,7 +119,32 @@ subplot(1,2,2)
   fec(x,y,T,z,strf="040")  // rmq: mesh=%f by default
   xtitle("fec example (without the mesh)")
 show_window()
-
+ ]]></programlisting>
+        <scilab:image>
+            x = [0 1 0 -1];
+            y = [0 0 1  1];
+            T = [1 1 2 3 1;
+            2 3 4 1 1];
+            z = [0 1 0 -1];  // values of the func at each vertices
+            clf()
+            xset("colormap",jetcolormap(64))
+            subplot(1,2,1)
+            colorbar(-1,1)
+            fec(x,y,T,z,strf="040",mesh=%t)
+            xtitle("fec example (with the mesh)")
+            subplot(1,2,2)
+            colorbar(-1,1)
+            fec(x,y,T,z,strf="040")  // rmq: mesh=%f by default
+            xtitle("fec example (without the mesh)")
+            show_window()
+        </scilab:image>
+        <programlisting role="example"><![CDATA[ 
+// define a mini triangulation (4 vertices, 2 triangles)
+x = [0 1 0 -1];
+y = [0 0 1  1];
+T = [1 1 2 3 1;
+     2 3 4 1 1];
+z = [0 1 0 -1];  // values of the func at each vertices
 // this example shows the effect of zminmax and uses the
 // previous example data (you have to execute the it before)
 clf()
@@ -128,7 +153,29 @@ colorbar(-0.5,0.5)  // be careful colorbar must be set by hands !
 fec(x,y,T,z,strf="040", zminmax=[-0.5 0.5], mesh=%t)
 xtitle("fec example : using zminmax argument")
 show_window()
-
+ ]]></programlisting>
+        <scilab:image>
+            x = [0 1 0 -1];
+            y = [0 0 1  1];
+            T = [1 1 2 3 1;
+            2 3 4 1 1];
+            z = [0 1 0 -1];  // values of the func at each vertices
+            // this example shows the effect of zminmax and uses the
+            // previous example data (you have to execute the it before)
+            clf()
+            xset("colormap",jetcolormap(64))
+            colorbar(-0.5,0.5)  // be careful colorbar must be set by hands !
+            fec(x,y,T,z,strf="040", zminmax=[-0.5 0.5], mesh=%t)
+            xtitle("fec example : using zminmax argument")
+            show_window()
+        </scilab:image>
+        <programlisting role="example"><![CDATA[ 
+// define a mini triangulation (4 vertices, 2 triangles)
+x = [0 1 0 -1];
+y = [0 0 1  1];
+T = [1 1 2 3 1;
+     2 3 4 1 1];
+z = [0 1 0 -1];  // values of the func at each vertices
 // this example shows the effect of zminmax and colout. It uses
 // also the data of the first example (you have to execute the it before)
 clf()
@@ -150,6 +197,43 @@ subplot(2,2,4)
   fec(x,y,T,z,strf="040", zminmax=[-0.5 0.5], colout=[0 -1], mesh=%t)
   xtitle("fec example : using zminmax and colout =[0 -1]")
 show_window()
+ ]]></programlisting>
+        <scilab:image>
+            // define a mini triangulation (4 vertices, 2 triangles)
+            x = [0 1 0 -1];
+            y = [0 0 1  1];
+            T = [1 1 2 3 1;
+            2 3 4 1 1];
+            z = [0 1 0 -1];  // values of the func at each vertices
+            // this example shows the effect of zminmax and colout. It uses
+            // also the data of the first example (you have to execute the it before)
+            clf()
+            xset("colormap",jetcolormap(64))
+            subplot(2,2,1)
+            colorbar(-0.5,0.5)
+            fec(x,y,T,z,strf="040", zminmax=[-0.5 0.5], colout=[0 0], mesh=%t)
+            xtitle("fec example : using zminmax and colout =[0 0]")
+            subplot(2,2,2)
+            colorbar(-0.5,0.5)
+            fec(x,y,T,z,strf="040", zminmax=[-0.5 0.5], colout=[32 32], mesh=%t)
+            xtitle("fec example : using zminmax and colout =[32 32]")
+            subplot(2,2,3)
+            colorbar(-0.5,0.5)
+            fec(x,y,T,z,strf="040", zminmax=[-0.5 0.5], colout=[-1 0], mesh=%t)
+            xtitle("fec example : using zminmax and colout =[-1 0]")
+            subplot(2,2,4)
+            colorbar(-0.5,0.5)
+            fec(x,y,T,z,strf="040", zminmax=[-0.5 0.5], colout=[0 -1], mesh=%t)
+            xtitle("fec example : using zminmax and colout =[0 -1]")
+            show_window()
+        </scilab:image>
+        <programlisting role="example"><![CDATA[ 
+// define a mini triangulation (4 vertices, 2 triangles)
+x = [0 1 0 -1];
+y = [0 0 1  1];
+T = [1 1 2 3 1;
+     2 3 4 1 1];
+z = [0 1 0 -1];  // values of the func at each vertices
 
 // this example shows a feature from colminmax:
 // playing with 2 colormaps for 2 subplots. It
@@ -166,6 +250,29 @@ subplot(1,2,2)
   xtitle("fec using the jet colormap")
 show_window()
  ]]></programlisting>
+        <scilab:image>
+            // define a mini triangulation (4 vertices, 2 triangles)
+            x = [0 1 0 -1];
+            y = [0 0 1  1];
+            T = [1 1 2 3 1;
+            2 3 4 1 1];
+            z = [0 1 0 -1];  // values of the func at each vertices
+            
+            // this example shows a feature from colminmax:
+            // playing with 2 colormaps for 2 subplots. It
+            // uses also the data of the first example.
+            clf()
+            xset("colormap",[hotcolormap(64);jetcolormap(64)])
+            subplot(1,2,1)
+            colorbar(-1,1,[1 64])
+            fec(x,y,T,z,strf="040", colminmax=[1 64], mesh=%t)
+            xtitle("fec using the hot colormap")
+            subplot(1,2,2)
+            colorbar(-1,1,[65 128])
+            fec(x,y,T,z,strf="040", colminmax=[65 128], mesh=%t)
+            xtitle("fec using the jet colormap")
+            show_window()
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index ee9f596..9200f32 100644 (file)
@@ -63,6 +63,11 @@ t=-1:0.1:1;
 deff("[z]=my_surface(x,y)","z=x**2+y**2")
 fgrayplot(t,t,my_surface,rect=[-2,-2,2,2])
  ]]></programlisting>
+        <scilab:image>
+            t=-1:0.1:1;
+            deff("[z]=my_surface(x,y)","z=x**2+y**2")
+            fgrayplot(t,t,my_surface,rect=[-2,-2,2,2])
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index 1b7a8f0..88b92bc 100644 (file)
@@ -94,6 +94,11 @@ clf();histplot(20,d,normalization=%f)
 clf();histplot(20,d,leg='rand(1,10000,''normal'')',style=5)
 clf();histplot(20,d,leg='rand(1,10000,''normal'')',style=16, rect=[-3,0,3,0.5]); 
 ]]></programlisting>
+                <scilab:image>
+                    d=rand(1,10000,'normal'); 
+                    clf();histplot(20,d,leg='rand(1,10000,''normal'')',style=16, rect=[-3,0,3,0.5]);
+                </scilab:image>
+                
             </member>
             <member>
                 Exemple #2: histogramme d'un échantillon de loi binomiale B(6,0.5)
@@ -108,6 +113,18 @@ subplot(2,1,2)
 histplot(c, d, normalization=%f, style=5)
 xtitle("l''histogramme non normalisé")
 ]]></programlisting>
+                <scilab:image localized="true">
+                    d = grand(1000,1,"bin", 6, 0.5);
+                    c = linspace(-0.5,6.5,8);
+                    clf()
+                    subplot(2,1,1)
+                    histplot(c, d, style=2)
+                    xtitle("l''histogramme normalisé")
+                    subplot(2,1,2)
+                    histplot(c, d, normalization=%f, style=5)
+                    xtitle("l''histogramme non normalisé")
+                </scilab:image>
+                
             </member>
             <member>
                 Exemple #3: histogramme d'un échantillon de loi exponentielle E(lambda)
@@ -121,6 +138,16 @@ x = linspace(0,max(Xmax),100)';
 plot2d(x,lambda*exp(-lambda*x),strf="000",style=5)
 legend(["histogramme d''un échantillon E(lambda)" "densité exacte"]);
 ]]></programlisting>
+                <scilab:image localized="true">
+                    lambda = 2;
+                    X = grand(100000,1,"exp", 1/lambda);
+                    Xmax = max(X);
+                    clf()
+                    histplot(40, X, style=2)
+                    x = linspace(0,max(Xmax),100)';
+                    plot2d(x,lambda*exp(-lambda*x),strf="000",style=5)
+                    legend(["histogramme d''un échantillon E(lambda)" "densité exacte"]);
+                </scilab:image>
             </member>
         </simplelist>
     </refsection>
index 5c6082c..5b60a3f 100644 (file)
@@ -55,6 +55,12 @@ deff('[z]=f(x,y)',['z= x*y']);
 z=feval(x,y,f);
 plot3d(x,y,z);
  ]]></programlisting>
+        <scilab:image>x=-5:5;y=x;
+            deff('[z]=f(x,y)',['z= x.*y']);
+            z=eval3d(f,x,y);
+            plot3d(x,y,z);
+        </scilab:image>
+        
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index a8fbc69..458d00f 100644 (file)
@@ -64,6 +64,14 @@ deff("[x,y,z]=scp(p1,p2)",["x=p1.*sin(p1).*cos(p2)";..
 [Xf,Yf,Zf]=eval3dp(scp,p1,p2);
 plot3d(Xf,Yf,Zf)
  ]]></programlisting>
+        <scilab:image>p1=linspace(0,2*%pi,10);
+            p2=linspace(0,2*%pi,10);
+            deff("[x,y,z]=scp(p1,p2)",["x=p1.*sin(p1).*cos(p2)";..
+            "y=p1.*cos(p1).*cos(p2)";..
+            "z=p1.*sin(p2)"])
+            [Xf,Yf,Zf]=eval3dp(scp,p1,p2);
+            plot3d(Xf,Yf,Zf)
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index 984d46e..f30051f 100644 (file)
@@ -65,6 +65,11 @@ t=[0:0.3:2*%pi]'; z=sin(t)*cos(t');
 [xx,yy,zz]=genfac3d(t,t,z);
 plot3d(xx,yy,zz)
  ]]></programlisting>
+        <scilab:image>
+            t=[0:0.3:2*%pi]'; z=sin(t)*cos(t');
+            [xx,yy,zz]=genfac3d(t,t,z);
+            plot3d(xx,yy,zz)
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index d232b05..ffdfdff 100644 (file)
@@ -52,5 +52,11 @@ fplot3d(t,t,surface,35,45,"X@Y@Z")
 // which can be drawn using geom3d and xpoly
 [x,y]=geom3d(%pi/2,0,surface(%pi/2,0))
  ]]></programlisting>
+        <scilab:image>deff("[z]=surface(x,y)","z=sin(x)*cos(y)")
+            t=%pi*(-10:10)/10;
+            fplot3d(t,t,surface,35,45,"X@Y@Z")
+            [x,y]=geom3d(%pi/2,0,surface(%pi/2,0))
+        </scilab:image>
+        
     </refsection>
 </refentry>
index a5392c6..fd84a8c 100644 (file)
@@ -95,6 +95,7 @@ Z(91:100,:) = A;
 scf();
 hist3d(Z);
  ]]></programlisting>
+        <scilab:image>hist3d();</scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index 88f6703..bc6e3ff 100644 (file)
@@ -41,6 +41,12 @@ x=-2:0.1:2; y=x;
 z=eval3d(milk_drop,x,y);
 plot3d(x,y,z)
  ]]></programlisting>
+        <scilab:image>x=-2:0.1:2;
+            y=x;
+            z=eval3d(milk_drop,x,y);
+            plot3d(x,y,z)
+        </scilab:image>
+        
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index 6397f28..0a6e674 100644 (file)
@@ -137,7 +137,18 @@ scf() ;
 xset("line style",2);plot2d(t,cos(t),style=5);
 xset("line style",4);plot2d(t,sin(t),style=3);
 legends(["sin(t)";"cos(t)"],[[5;2],[3;4]], with_box=%f, opt="?")
-
+ ]]></programlisting>
+        <scilab:image>
+            t=0:0.1:2*%pi;
+            plot2d(t,[cos(t'),cos(2*t'),cos(3*t')],[-1,2 3]);  
+            legends(['cos(t)';'cos(2*t)';'cos(3*t)'],[-1,2 3],opt="lr")
+            
+            scf() ;
+            xset("line style",2);plot2d(t,cos(t),style=5);
+            xset("line style",4);plot2d(t,sin(t),style=3);
+            legends(["sin(t)";"cos(t)"],[[5;2],[3;4]], with_box=%f, opt="?")
+        </scilab:image>
+        <programlisting role="example"><![CDATA[ 
 // Exemple 2
 scf() ;
 subplot(221)
@@ -160,6 +171,29 @@ t=0:0.1:2*%pi;
 plot2d(t,[cos(t'),cos(2*t'),cos(3*t')],[-1,2 3]);  
 legends(['cos(t)';'cos(2*t)';'cos(3*t)'],[-1,2 3], opt=2, font_size=1 )
  ]]></programlisting>
+        <scilab:image>
+            // Exemple 2
+            scf() ;
+            subplot(221)
+            t=0:0.1:2*%pi;
+            plot2d(t,[cos(t'),cos(2*t'),cos(3*t')],[-1,2 3]);  
+            legends(['cos(t)';'cos(2*t)';'cos(3*t)'],[-1,2 3], opt=3 )
+            
+            subplot(222)
+            xset("line style",2);plot2d(t,cos(t),style=5);
+            xset("line style",4);plot2d(t,sin(t),style=3);
+            legends(["sin(t)";"cos(t)"],[[5;2],[3;4]], with_box=%f, opt=6 )
+            
+            subplot(223)
+            xset("line style",2);plot2d(t,cos(t),style=5);
+            xset("line style",4);plot2d(t,sin(t),style=3);
+            legends(["sin(t)";"cos(t)"],[[5;2],[3;4]], with_box=%f, opt=1, font_size=2 )
+            
+            subplot(224)
+            t=0:0.1:2*%pi;
+            plot2d(t,[cos(t'),cos(2*t'),cos(3*t')],[-1,2 3]);  
+            legends(['cos(t)';'cos(2*t)';'cos(3*t)'],[-1,2 3], opt=2, font_size=1 )
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index ce0e254..f3c4f58 100644 (file)
         <title>Exemples</title>
         <programlisting role="example"><![CDATA[ 
 // Premier exemple
-x=[0:0.1:2*%pi]';
-plot2d(x,sin(x)) 
-replot([-1,-1,10,2]) 
+      backupstyle='?'
 
+      x=[0:0.1:2*%pi]';
+      plot2d(x,sin(x))
+      replot([-1,-1,10,2])
+ ]]></programlisting>
+        <scilab:image>
+            backupstyle='?'
+            
+            x=[0:0.1:2*%pi]';
+            plot2d(x,sin(x))
+            replot([-1,-1,10,2])
+        </scilab:image>
+        
+        <programlisting role="example"><![CDATA[ 
 // second exemple
 xdel(winsid());
 plot() // plot demo
@@ -61,6 +72,14 @@ f=gcf();
 replot([-1,-1,10,2],f.children(1)) // specify axes handle's value
 replot([-3,-2,8,4],f.children(2)) 
  ]]></programlisting>
+        <scilab:image>
+            xdel(winsid());
+            plot()
+            f2=gcf();
+            replot([-1,-1,10,2],f2.children(1))
+            replot([-3,-2,8,4],f2.children(2))
+        </scilab:image>
+        
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index b73fa87..f1baa58 100644 (file)
@@ -52,6 +52,16 @@ param3d()
 subplot(2,2,4)
 hist3d()
  ]]></programlisting>
+        <scilab:image>
+            subplot(221)
+            plot2d()
+            subplot(222)
+            plot3d()
+            subplot(2,2,3)
+            param3d()
+            subplot(2,2,4)
+            hist3d()
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index 082338f..015caa7 100644 (file)
@@ -159,6 +159,36 @@ drawaxis(x=9,y=[2,5,0,3],dir='r',tics='i',sub_int=5);
 // encore un axe horizontal
 drawaxis(x=2:7,y=4,dir='u',tics='v',fontsize=10,textcolor=9,ticscolor=7,seg=0,sub_int=20) 
  ]]></programlisting>
+        <scilab:image>
+            plot2d(1:10,1:10,1,"020")
+            // axe horizontal
+            drawaxis(x=2:7,y=4,dir='u',tics='v')
+            // axe horizontal en haut du cadre
+            drawaxis(x=2:7,dir='u',tics='v') 
+            // axe horizontal en bas du cadre
+            drawaxis(x=2:7,dir='d',tics='v') 
+            
+            // axe horizontal donné par une plage de variation 
+            drawaxis(x=[2,7,3],y=4,dir='d',tics='r') 
+            
+            // axe vertical
+            drawaxis(x=4,y=2:7,dir='r',tics='v')
+            drawaxis(x=2,y=[2,7,3],dir='l',tics='r')
+            drawaxis(y=2:7,dir='r',tics='v')
+            drawaxis(y=2:7,dir='l',tics='v')
+            
+            // axe horizontal avec chaînes de caractères au dessus des graduations
+            drawaxis(x=2:7,y=8,dir='u',tics='v',val='A'+string(1:6));
+            // axe vertical avec chaînes de caractères au dessus des graduations
+            drawaxis(x=8,y=2:7,dir='r',tics='v',val='B'+string(1:6));
+            
+            // axe horizontal avec 'i' 
+            drawaxis(x=[2,5,0,3],y=9,dir='u',tics='i');
+            drawaxis(x=9,y=[2,5,0,3],dir='r',tics='i',sub_int=5);
+            
+            // encore un axe horizontal
+            drawaxis(x=2:7,y=4,dir='u',tics='v',fontsize=10,textcolor=9,ticscolor=7,seg=0,sub_int=20) 
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index b9ba0eb..0883d14 100644 (file)
 scf(0);
 y=[1 -3 5];
 bar(y,0.5,'yellow');
-
+ ]]></programlisting>
+        
+        <scilab:image>
+            y=[1 -3 5];
+            bar(y,0.5,'yellow');
+        </scilab:image>
+        <programlisting role="example"><![CDATA[ 
 // Deuxième exemple : par défaut style='grouped'
 scf(1);
 x=[1 2 5]; y=[1  -5 6;3 -2 7;4  -3 8];
 bar(x,y);
-
+ ]]></programlisting>
+        <scilab:image>
+            x=[1 2 5];
+            y=[1  -5 6;3 -2 7;4  -3 8];
+            bar(x,y);
+        </scilab:image>
+        
+        <programlisting role="example"><![CDATA[ 
 // Troisième exemple : dessine 3 bars (nombre de colonnes de y) style='stacked'.
 scf(2);
 x=[1 2 5]; y=[1 4 7;2 5 8;3 6  9];
 bar(x,y,'stacked');
-
+ ]]></programlisting>
+        
+        
+        <scilab:image>
+            x=[1 2 5];
+            y=[1 4 7;2 5 8;3 6  9];
+            bar(x,y,'stacked');
+        </scilab:image>
+        <programlisting role="example"><![CDATA[ 
 // Quatrième exemple; width=0.2;color='green'; par défaut style='grouped'
 scf(3);
 x=[1 2 5]; y=[1 4 7;2 5 8;3 6 9];
 bar(x,y,0.2,'green');
  ]]></programlisting>
+        <scilab:image>
+            x=[1 2 5];
+            y=[1 4 7;2 5 8;3 6 9];
+            bar(x,y,0.2,'green');
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index b431595..0485a20 100644 (file)
 scf(0);
 y=[1 -3 5];
 barh(y,0.5,'yellow');
-
+ ]]></programlisting>
+        
+        <scilab:image>
+            y=[1 -3 5];
+            barh(y,0.5,'yellow');
+        </scilab:image>
+        <programlisting role="example"><![CDATA[ 
 // Deuxième exemple : par défaut style='grouped'
 scf(1);
-x=[1 2 5]; y=[1  -5 6;3 -2 7;4  -3 8];
+x=[1 2 5];
+y=[1  -5 6;3 -2 7;4  -3 8];
 barh(x,y);
-
+ ]]></programlisting>
+        
+        <scilab:image>
+            x=[1 2 5];
+            y=[1  -5 6;3 -2 7;4  -3 8];
+            barh(x,y);
+        </scilab:image>
+        <programlisting role="example"><![CDATA[ 
 // Troisième exemple : dessine 3 barres (nombre de colonnes de y) style='stacked'.
 scf(2);
-x=[1 2 5]; y=[1 4 7;2 5 8;3 6  9];
+x=[1 2 5];
+y=[1 4 7;2 5 8;3 6  9];
 barh(x,y,'stacked');
-
+ ]]></programlisting>
+        
+        <scilab:image>
+            x=[1 2 5];
+            y=[1 4 7;2 5 8;3 6  9];
+            barh(x,y,'stacked');
+        </scilab:image>
+        <programlisting role="example"><![CDATA[ 
 // Quatrième exemple; width=0.2;color='green'; par défaut style='grouped'
 scf(3);
-x=[1 2 5]; y=[1 4 7;2 5 8;3 6 9];
+x=[1 2 5];
+y=[1 4 7;2 5 8;3 6 9];
 barh(x,y,0.2,'green');
  ]]></programlisting>
+        <scilab:image>
+            x=[1 2 5];
+            y=[1 4 7;2 5 8;3 6 9];
+            barh(x,y,0.2,'green');
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index e4b033b..eb54642 100644 (file)
@@ -83,6 +83,27 @@ xtitle('stacked homogenisation')
 x=1:3; y1=1:3; y2=[4 3 5;6 7 8;9 10 11];
 bar(x,y1,'yellow');bar(x,y2);
 barhomogenize('stacked',1);
+]]></programlisting>
+        <scilab:image>
+            subplot(2,3,1)
+            xtitle('ex1: creation of 1 yellow bar and  3 bars')
+            x=1:3; y1=1:3; y2=[4 3 5;6 7 8;9 10 11];
+            bar(x,y1,'yellow');bar(x,y2);
+            // homogeneisation des 4 barres avec l'option style fixée à 'grouped' (par défaut)
+            subplot(2,3,2)
+            xtitle('grouped homogenisation')
+            x=1:3; y1=1:3; y2=[4 3 5;6 7 8;9 10 11];
+            bar(x,y1,'yellow');bar(x,y2);
+            barhomogenize();
+            // homogeneisation des 4 barres avec l'option style fixée à 'stacked'
+            subplot(2,3,3)
+            xtitle('stacked homogenisation')
+            x=1:3; y1=1:3; y2=[4 3 5;6 7 8;9 10 11];
+            bar(x,y1,'yellow');bar(x,y2);
+            barhomogenize('stacked',1);
+            
+        </scilab:image>
+        <programlisting role="example"><![CDATA[ 
 
 // Deuxieme exemple
 // creation d'une barre (i.e une polyline de type polyline_style=6, avec un appel à la fonction bar) et deux polylines (i.e 2 polylines de type polyline_style=1, avec un appel à la fonction plot)
@@ -113,6 +134,38 @@ barhomogenize();
 //barhomogenize('stacked',0.5);
 //barhomogenize('stacked',1);
  ]]></programlisting>
+        <scilab:image>
+            
+            // Deuxieme exemple
+            // creation d'une barre (i.e une polyline de type polyline_style=6, avec un appel à la fonction bar) et deux polylines (i.e 2 polylines de type polyline_style=1, avec un appel à la fonction plot)
+            subplot(2,3,4)
+            xtitle('ex2: creation of 1 bar and 2 polylines')
+            x=1:10; y=sin(x)/2;
+            bar(x,y,'red')
+            x1=1:10;y1=[sin(x);cos(x)]
+            plot(x1,y1)
+            // modification du type polyline_style à 6 de la deuxieme polyline construite par plot (cette polyline devient une barre)
+            subplot(2,3,5)
+            xtitle('transformation of the second polyline to bar')
+            x=1:10; y=sin(x)/2;
+            bar(x,y,'red')
+            x1=1:10;y1=[sin(x);cos(x)]
+            plot(x1,y1)
+            e=gce(); e2=e.children(2); e2.polyline_style=6;
+            // homogeneisation de la première barre (construite par appel à la fonction bar) et de la deuxieme barre (issue de la modification). 
+            subplot(2,3,6)
+            xtitle('grouped homogenisation')
+            x=1:10; y=sin(x)/2;
+            bar(x,y,'red')
+            x1=1:10;y1=[sin(x);cos(x)]
+            plot(x1,y1)
+            e=gce(); e2=e.children(2); e2.polyline_style=6;
+            barhomogenize();
+            // change the style and the width
+            //barhomogenize('stacked',0.5);
+            //barhomogenize('stacked',1);
+        </scilab:image>
+        
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index 6c9a2bb..27cda10 100644 (file)
@@ -51,6 +51,13 @@ h = gcf();
 h.color_map = jetcolormap(16);
 addcolor(name2rgb('grey')/255);
   ]]></programlisting>
+        <scilab:image> 
+            plot3d();
+            h = gcf();
+            h.color_map = jetcolormap(16);
+            addcolor(name2rgb('grey')/255);
+        </scilab:image>
+        
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index cb1d38a..e134f5c 100644 (file)
     </refsection>
     <refsection>
         <title>Exemples</title>
-        <programlisting role="example"><![CDATA[ 
+        <programlisting role="example"><![CDATA[
 // échelle isométrique 
 plot2d(0,0,-1,"031"," ",[-2,-2,2,2])
 xset("color",3)
 xarc(-1,1,2,2,0,90*64)
 xarc(-1.5,1.5,3,3,0,360*64)
  ]]></programlisting>
+        <scilab:image>
+            plot2d(0,0,-1,"031"," ",[-2,-2,2,2])
+            xset("color",3)
+            xarc(-1,1,2,2,0,90*64)
+            xarc(-1.5,1.5,3,3,0,360*64)
+        </scilab:image>
+        
+        <programlisting role="example"><![CDATA[
+
+  rect=[-1,-1,1,1]
+  plot2d(0,0,0,rect=rect,frameflag=3,axesflag=5)
+  xrpoly([0,0],3,1)
+  xarc(-1,1,2,2,0,64*360)
+  xarc(-1,1,2,2,0,64*360)
+  xstring(1,0.1,'A')//label A
+  xstring(-0.5,0.9,'B')//label B
+  xstring(-0.5,-1,'C')//label C 
+ ]]></programlisting>
+        <scilab:image>
+            
+            rect=[-1,-1,1,1]
+            plot2d(0,0,0,rect=rect,frameflag=3,axesflag=5)
+            xrpoly([0,0],3,1)
+            xarc(-1,1,2,2,0,64*360)
+            xarc(-1,1,2,2,0,64*360)
+            xstring(1,0.1,'A')//label A
+            xstring(-0.5,0.9,'B')//label B
+            xstring(-0.5,-1,'C')//label C 
+            
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index 7e4accc..007263e 100644 (file)
@@ -53,6 +53,17 @@ arcs=[-1.0 0.0 0.5; // x du point en haut à gauche
        180*64 360*64 90*64]; // angle 2
 xarcs(arcs,[1,2,3])
  ]]></programlisting>
+        <scilab:image>
+            plot2d(0,0,-1,"031"," ",[-1,-1,1,1])
+            arcs=[-1.0 0.0 0.5;
+            1.0 0.0 0.5;
+            0.5 1.0 0.5;
+            0.5 0.5 1.0;
+            0.0 0.0 0.0;
+            180*64 360*64 90*64];
+            xarcs(arcs,[1,2,3])
+        </scilab:image>
+        
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index 1970fec..8e2da73 100644 (file)
@@ -66,5 +66,14 @@ xset("clipgrf")
 xarrows(x1,y1,1,1:10)
 xset("clipoff")
  ]]></programlisting>
+        <scilab:image>
+            x=2*%pi*(0:9)/8;
+            x1=[sin(x); 9*sin(x)];
+            y1=[cos(x); 9*cos(x)];
+            plot2d([-10,10], [-10,10], [-1,-1], "022")
+            xset("clipgrf")
+            xarrows(x1, y1, 1, 1:10)
+            xset("clipoff")
+        </scilab:image>
     </refsection>
 </refentry>
index 27877f0..1bb2467 100644 (file)
@@ -48,6 +48,13 @@ xfarc(-0.5,0.5,1,1,0,90*64)
 xset("color",2)
 xfarc(0.5,0.5,1,1,0,360*64)
  ]]></programlisting>
+        <scilab:image>
+            // isoview scaling 
+            plot2d(0,0,-1,"031"," ",[-2,-2,2,2])
+            xfarc(-0.5,0.5,1,1,0,90*64)
+            xset("color",2)
+            xfarc(0.5,0.5,1,1,0,360*64)
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index dd5ae4d..65b0a2a 100644 (file)
@@ -54,6 +54,16 @@ arcs=[-1.0 0.0 0.5; // abscisse du coin superieur gauche
        180*64 360*64 90*64]; // angle 2
 xfarcs(arcs,[1,2,3])
  ]]></programlisting>
+        <scilab:image>
+            plot2d(0,0,-1,"031"," ",[-1,-1,1,1])
+            arcs=[-1.0 0.0 0.5; 
+            1.0 0.0 0.5; 
+            0.5 1.0 0.5; 
+            0.5 0.5 1.0; 
+            0.0 0.0 0.0; 
+            180*64 360*64 90*64]; 
+            xfarcs(arcs,[1,2,3])
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index b4ad960..edb0eb6 100644 (file)
@@ -36,6 +36,11 @@ plot2d(0,0,-1,"010"," ",[-2,-2,2,2])
 xset("color",5)
 xfrect(-1,1,2,2)
  ]]></programlisting>
+        <scilab:image>
+            plot2d(0,0,-1,"010"," ",[-2,-2,2,2])
+            xset("color",5)
+            xfrect(-1,1,2,2)
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index 2ad3d67..cb5af7a 100644 (file)
@@ -37,6 +37,11 @@ plot2d(0,0,-1,"010"," ",[-2,-2,2,2])
 xset("color",5)
 xrect(-1,1,2,2)
  ]]></programlisting>
+        <scilab:image>
+            plot2d(0,0,-1,"010"," ",[-2,-2,2,2])
+            xset("color",5)
+            xrect(-1,1,2,2)
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index 74703d4..98cbaf6 100644 (file)
@@ -61,6 +61,15 @@ rects=[x;10*ones(x);step*ones(x);30*ones(x)];
 xrects(rects,cols)
 xnumb(x,15*ones(x),cols)
  ]]></programlisting>
+        <scilab:image>
+            plot2d([-100,500],[-50,50],[-1,-1],"022")
+            cols=[-34,-33,-32,-20:5:20,32,33,34];
+            x=400*(0:14)/14; step=20;
+            rects=[x;10*ones(x);step*ones(x);30*ones(x)];
+            xrects(rects,cols)
+            xnumb(x,15*ones(x),cols)
+        </scilab:image>
+        
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index a6204d2..b87ac36 100644 (file)
 // Premier exemple : un argument d'entrée  x=[1 2 5] 
 scf(0);
 pie([1 2 5]);
-
+ ]]></programlisting>
+        
+        <scilab:image>
+            pie([1 2 5]);
+        </scilab:image>
+        
+        <programlisting role="example"><![CDATA[ 
 // Deuxième example : deux arguments d'entrées x=[5 9  4 6 3], sp=[0 1 0 1 0], la 2ème et 4ème parts du cercle sont séparées des autres
 scf(1);
 pie([5 9 4 6 3],[0 1 0 1 0]);
-
+ ]]></programlisting>
+        
+        <scilab:image>
+            pie([5 9 4 6 3],[0 1 0 1 0]);
+        </scilab:image>
+        <programlisting role="example"><![CDATA[ 
 // Troisième exemple : trois arguments d'entrées, x=[3 4 6 2], sp=[0 1 0 0], txt=["part1","part2","part3","part4"]
 scf(2);
 pie([3 4 6 2],[0 1 0 0],["part1","part2","part3","part4"]);
  ]]></programlisting>
+        <scilab:image>
+            pie([3 4 6 2],[0 1 0 0],["part1","part2","part3","part4"]);
+        </scilab:image>
+        
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index 32c7cd9..52fba74 100644 (file)
@@ -74,6 +74,13 @@ delete(e);
 xfpoly(x,y,3);
 
  ]]></programlisting>
+        <scilab:image>
+            x=sin(2*%pi*(0:4)/5);
+            y=cos(2*%pi*(0:4)/5);
+            plot2d(0,0,-1,"010"," ",[-2,-2,2,2]);
+            xset("color",5);
+            xfpoly(x,y);
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index 1f312e4..3d26d70 100644 (file)
@@ -63,6 +63,19 @@ xpoly(x,y,"lines",1) // by default closed
 e=gce(); // get the current entity (the last created: here the polyline)
 e.closed = 'off' // the polyline is now open
  ]]></programlisting>
+        <scilab:image>
+            x=sin(2*%pi*(0:4)/5);
+            y=cos(2*%pi*(0:4)/5);
+            
+            plot2d(0,0,-1,"010"," ",[-2,-2,2,2])
+            xset("color",5)
+            xpoly(x,y,"lines",1) // by default closed
+            
+            e=gce(); // get the current entity (the last created: here the polyline)
+            e.closed = 'off' // the polyline is now open
+            
+        </scilab:image>
+        
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index f362ac6..95d5a59 100644 (file)
@@ -64,6 +64,12 @@ rand("uniform")
 xset("color",3)
 xpolys(rand(3,5),rand(3,5),[-1,-2,0,1,2])
  ]]></programlisting>
+        <scilab:image>
+            plot2d(0,0,-1,"012"," ",[0,0,1,1])
+            rand("uniform")
+            xset("color",3)
+            xpolys(rand(3,5),rand(3,5),[-1,-2,0,1,2])
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index 0167555..0dbe232 100644 (file)
 plot2d(0,0,-1,"012"," ",[0,0,10,10])
 xrpoly([5,5],5,5)
  ]]></programlisting>
+        <scilab:image>
+            plot2d(0,0,-1,"012"," ",[0,0,10,10])
+            xrpoly([5,5],5,5)
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index 3318742..2e44d77 100644 (file)
@@ -37,6 +37,9 @@ a.x_ticks = tlist(["ticks", "locations", "labels"], (0:6)', [mathml;"1";"$\sin(x
             Le rendu est basé sur la bibliothèque Java JLaTeXMath. Il s'agit d'une implémentation du mode mathématique de LaTeX. L'ensemble des commandes LaTeX de base sont gérées (s'il en manque une, n'hésitez pas à soumettre un rapport de bug), par contre celles de TeX, comme <literal>\over</literal> ne le sont pas.
         </para>
         <para>Depuis Scilab 5.2.1, le grec, le cyrillique et l'intégralité de l'unicode pour les alphabets latin sont gérés dans les graphiques Scilab.</para>
+        <scilab:image>
+            xtitle('$\big\sum_{n=1}^{+\infty}\frac1{n^2}=\frac{\pi^2}{6}$')
+        </scilab:image>
         <programlisting role="example"><![CDATA[
       xtitle('$\textstyle\sum_{n=1}^{+\infty}\frac1{n^2}=\frac{\pi^2}{6}$')
       xtitle('$\big(\bigg)$')
@@ -84,6 +87,12 @@ xtitle('$\newcommand{\myfrac}[2]{\frac{\mathfrak{#1}}{\mathcal{#2}}}\myfrac{A}{B
             utilisation, le moteur peut prendre jusqu'à quelques secondes à se
             charger. Toutefois, les utilisations suivantes seront très rapides.
         </para>
+        <scilab:image><![CDATA[ 
+str="<mrow><mfrac><mrow><mn>1</mn></mrow><mrow><mn>2</mn></mrow></mfrac><mo></mo><mfenced open=""{"" close=""}""> ..
+<mrow><mfrac><mrow><mfrac><mrow><mi>a</mi></mrow><mrow><mi>b</mi></mrow></mfrac></mrow><mrow><mfrac><mrow> ..
+<mi>c</mi></mrow><mrow><mi>d</mi></mrow></mfrac></mrow></mfrac></mrow></mfenced></mrow>"
+xtitle(str)
+]]></scilab:image>
         <programlisting role="example"><![CDATA[ 
 plot3d();
 a=get("current_axes");
index 7e44058..a392a98 100644 (file)
@@ -117,6 +117,15 @@ else
   disp('You missed it.')
 end;
  ]]></programlisting>
+        <scilab:image>
+            axes = gca() ;
+            axes.axes_visible = 'on' ;
+            axes.data_bounds = [ 1, 1 ; 10, 10 ] ;
+            xtitle( 'stringbox', 'X', 'Y' )  ;
+            stringbox( axes.x_label )
+            str = [ "Scilab", "is" , "not", "Skylab" ] ;
+            xstring( 4, 9, str ) ;
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index 9d45215..35ab2db 100644 (file)
             la fenêtre graphique courante, avec la police la plus grande possible.
         </para>
     </refsection>
+    
+    <refsection>
+        <title>Exemples</title>
+        <programlisting role="example"><![CDATA[ 
+titlepage("Ceci est le titre de la page");
+ ]]></programlisting>
+        <scilab:image>
+            titlepage("Ceci est le titre de la page");
+        </scilab:image>
+        
+    </refsection>
+    
     <refsection role="see also">
         <title>Voir aussi</title>
         <simplelist type="inline">
index 735d678..921b0e7 100644 (file)
@@ -91,6 +91,11 @@ xset("font",1,3)              // changement de la taille de police
 xstring(0.1,0.3,alphabet)
 xset("font",1,24); xstring(0.1,0.6,"a") // un grand alpha
  ]]></programlisting>
+        <scilab:image>
+            plot2d([0;1],[0;1],0)
+            xstring(0.5,0.5,["$\overbrace{Scilab}$" "n''est ";"pas" "$\underbrace{Matlab}$"])
+        </scilab:image>
+        
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index b135abd..97395ba 100644 (file)
@@ -66,6 +66,18 @@ r=[r(1),r(2)+r(4)+0.01,r(3),r(4)/2];
 xrect(r(1),r(2)+r(4),r(3),r(4))
 xstringb(r(1),r(2),str,r(3),r(4),"fill");
  ]]></programlisting>
+        <scilab:image>
+            str=["Scilab" "is";"$\sqrt{not}$" "elisaB"]; // LaTeX rendering (&gt;= Scilab 5.2)
+            plot2d(0,0,[-1,1],"010"," ",[0,0,1,1]);
+            
+            r=[0,0,1,0.5];
+            xstringb(r(1),r(2),str,r(3),r(4),"fill");
+            xrect(r(1),r(2)+r(4),r(3),r(4));
+            
+            r=[r(1),r(2)+r(4)+0.01,r(3),r(4)/2];
+            xrect(r(1),r(2)+r(4),r(3),r(4))
+            xstringb(r(1),r(2),str,r(3),r(4),"fill");
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index 9709e7b..5b02cb6 100644 (file)
@@ -80,6 +80,13 @@ txt2=gce();
 txt2.font_size = 5;
 txt2.font_style = 2;
  ]]></programlisting>
+        <scilab:image>
+            plot2d([0;1],[0;1],0)
+            str=["$\underleftrightarrow{Scilab}$" "is";"not" "elisaB"]; // Only valid from Scilab 5.2
+            r=xstringl(0.5,0.5,str)
+            xrects([r(1) r(2)+r(4) r(3) r(4)]')
+            xstring(r(1),r(2),str)
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index 331bdea..09bec2e 100644 (file)
@@ -63,5 +63,13 @@ for i=2*%pi*(0:10)/10,
   xpoly(xy1(1,:),xy1(2,:),"lines")
 end
  ]]></programlisting>
+        <scilab:image>
+            xsetech([0,0,1,1],[-1,-1,1,1])
+            xy=[(0:0.1:10);sin(0:0.1:10)]/10;
+            for i=2*%pi*(0:10)/10,
+            [xy1]=rotate(xy,i);
+            xpoly(xy1(1,:),xy1(2,:),"lines")
+            end
+        </scilab:image>
     </refsection>
 </refentry>
index 57a0626..7d061ee 100644 (file)
@@ -72,6 +72,16 @@ xsetech([0,0.5,1.0,0.5])
 [wrect,frect,logflag,arect]=xgetech();
 clf();
  ]]></programlisting>
+        <scilab:image>
+            xsetech([0,0,1.0,0.5])
+            plot2d()
+            xsetech([0,0.5,1.0,0.5])
+            grayplot()
+            xsetech([0,0,1.0,0.5])
+            [wrect,frect,logflag,arect]=xgetech();
+            xsetech([0,0.5,1.0,0.5])
+            [wrect,frect,logflag,arect]=xgetech();
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index 87d3c47..0c1a89c 100644 (file)
@@ -33,6 +33,11 @@ x=[0:0.1:2*%pi]';
 plot2d(sin(x))
 xgrid(2)
  ]]></programlisting>
+        <scilab:image>
+            x=[0:0.1:2*%pi]';
+            plot2d(sin(x))
+            xgrid(2)
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index 19a90a4..2f75f4c 100644 (file)
@@ -51,6 +51,11 @@ plot2d([-100,500],[-100,600],[-1,-1],"022")
 x=0:100:200;
 xnumb(x,500*ones(x),[10,20,35],1)
  ]]></programlisting>
+        <scilab:image>
+            plot2d([-100,500],[-100,600],[-1,-1],"022")
+            x=0:100:200;
+            xnumb(x,500*ones(x),[10,20,35],1)
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
index 7bd405e..82fbc7c 100644 (file)
@@ -70,13 +70,24 @@ yv=[cos(x);9*cos(x)];
 plot2d([-10,10],[-10,10],[-1,-1],"022")
 xsegs(xv,yv,1:10)
  ]]></programlisting>
+        <scilab:image>
+            x=2*%pi*(0:9)/10;
+            xv=[sin(x);9*sin(x)];
+            yv=[cos(x);9*cos(x)];
+            plot2d([-10,10],[-10,10],[-1,-1],"022")
+            xsegs(xv,yv,1:10)
+        </scilab:image>
         <programlisting role="example"><![CDATA[
-
 // 2D exemple
 plot2d([-10,10],[-10,10],[-1,-1],"022")
 xsegs([9, -9],[9 , -9]) // Dessine une ligne de X(9,9) à Y(-9, -9)
 xsegs([5, -2],[4 , -1]) // Dessine une ligne de X(5,4) à Y(-2, -1)
  ]]></programlisting>
+        <scilab:image>
+            plot2d([-10,10],[-10,10],[-1,-1],"022")
+            xsegs([9, -9],[9 , -9]) // Dessine une ligne de X(9,9) à Y(-9, -9)
+            xsegs([5, -2],[4 , -1]) // Dessine une ligne de X(5,4) à Y(-2, -1)
+        </scilab:image>
         <programlisting role="example"><![CDATA[
 
 // 3D exemple
@@ -98,5 +109,22 @@ e = gce();
 e.arrow_size = 0.4;
 
  ]]></programlisting>
+        <scilab:image>
+            a=gca();
+            a.view="3d";
+            f=gcf();
+            f.color_map=rainbowcolormap(120);
+            alpha=2*%pi*(0:119)/40;
+            xv=[sin(alpha)/2;sin(alpha)/3];
+            yv=[cos(alpha)/2;cos(alpha)/3];
+            zv=[alpha/8;alpha/8];
+            xsegs(xv,yv,zv,1:120);
+            // Now adjust the data_bounds
+            a.data_bounds = [min(xv) min(yv) min(zv); ...
+            max(xv) max(yv) max(zv)];
+            // We can add an arrow to each segs
+            e = gce();
+            e.arrow_size = 0.4;
+        </scilab:image>
     </refsection>
 </refentry>
index 138bdc9..e635316 100644 (file)
@@ -95,6 +95,8 @@ xsetech([0,0.5,1.0,0.5])
 // l'échelle est [0,0,1,1] par défaut 
 // on la change avec l'argument rect de plot2d 
 plot2d([1:10]',[1:10]',1,"011"," ",[-6,-6,6,6])
+ ]]></programlisting>
+        <programlisting role="example"><![CDATA[ 
 // 4 dessins sur une seule fenêtre
 clf()
 xset("font",2,0)
@@ -104,17 +106,43 @@ xsetech([0.5,0.5,0.5,0.5]); grayplot()
 xsetech([0,0.5,0.5,0.5]); histplot()
 // retour aux valeurs par défaut 
 xsetech([0,0,1,1])
+ ]]></programlisting>
+        <scilab:image>
+            xset("font",2,0)
+            xsetech([0,0,0.5,0.5]); plot3d()
+            xsetech([0.5,0,0.5,0.5]); plot2d()
+            xsetech([0.5,0.5,0.5,0.5]); grayplot()
+            xsetech([0,0.5,0.5,0.5]); histplot()
+            // retour aux valeurs par défaut 
+            xsetech([0,0,1,1])
+        </scilab:image>
+        <programlisting role="example"><![CDATA[ 
+
 // Un dessin avec arect change
 clf()
 xset("default")
 xsetech(arect=[0,0,0,0]) 
 x=1:0.1:10;plot2d(x',sin(x)')
+ ]]></programlisting>
+        <scilab:image>
+            clf()
+            xset("default")
+            xsetech(arect=[0,0,0,0]) 
+            x=1:0.1:10;plot2d(x',sin(x)')
+        </scilab:image>
+        <programlisting role="example"><![CDATA[ 
 clf()
 xsetech(arect=[1/8,1/8,1/16,1/4])
 x=1:0.1:10;plot2d(x',sin(x)')
 clf()
 xset("default")
  ]]></programlisting>
+        <scilab:image>
+            xsetech(arect=[1/8,1/8,1/16,1/4])
+            x=1:0.1:10;plot2d(x',sin(x)')
+            clf()
+            xset("default")
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>