Split the examples of polyline properties + add a new image 15/10115/3
Sylvestre Ledru [Sat, 5 Jan 2013 09:37:30 +0000 (10:37 +0100)]
Change-Id: I030e17e7f7ead26227a252880777a421f95a3256

scilab/modules/graphics/help/en_US/polygon/polyline_properties.xml
scilab/modules/helptools/images/polyline_properties_2.png [new file with mode: 0644]

index c7901fd..0123def 100644 (file)
@@ -395,16 +395,10 @@ p.thickness=3;
 p.mark_style=9;
 d=p.data;d(1,:)=[0 0];p.data=d;
 a.rotation_angles=[0 45];
-   
-p.data=[(-2:0.1:2)' sin((-2:0.1:2)*%pi)']
-p.mark_mode="off";
-p.polyline_style=3;
-p.line_style=4;
  ]]></programlisting>
         <scilab:image>
             a=get("current_axes")
             a.data_bounds=[-2,-2;2,2];
-            
             xpoly(sin(2*%pi*(0:5)/5),cos(2*%pi*(0:5)/5),"lines",0)
             p=get("hdl");
             p.foreground=2;
@@ -413,7 +407,22 @@ p.line_style=4;
             d=p.data;d(1,:)=[0 0];p.data=d;
             a.rotation_angles=[0 45];
         </scilab:image>
-        
+        <programlisting role="example"><![CDATA[
+xpoly(sin(2*%pi*(0:5)/5),cos(2*%pi*(0:5)/5),"lines",0)
+p=get("hdl"); //get handle on current entity (here the polyline entity)
+p.data=[(-2:0.1:2)' sin((-2:0.1:2)*%pi)']
+p.mark_mode="off";
+p.polyline_style=3;
+p.line_style=4;
+ ]]></programlisting>
+        <scilab:image>
+            xpoly(sin(2*%pi*(0:5)/5),cos(2*%pi*(0:5)/5),"lines",0)
+            p=get("hdl");
+            p.data=[(-2:0.1:2)' sin((-2:0.1:2)*%pi)']
+            p.mark_mode="off";
+            p.polyline_style=3;
+            p.line_style=4;
+        </scilab:image>
     </refsection>
     <refsection role="see also">
         <title>See Also</title>
diff --git a/scilab/modules/helptools/images/polyline_properties_2.png b/scilab/modules/helptools/images/polyline_properties_2.png
new file mode 100644 (file)
index 0000000..f0bb84c
Binary files /dev/null and b/scilab/modules/helptools/images/polyline_properties_2.png differ