add CDATA + role in the graphics module
Yann Collette [Tue, 8 Sep 2009 09:27:10 +0000 (11:27 +0200)]
400 files changed:
scilab/modules/graphics/help/en_US/GlobalProperty.xml
scilab/modules/graphics/help/en_US/LineSpec.xml
scilab/modules/graphics/help/en_US/Matplot.xml
scilab/modules/graphics/help/en_US/Matplot1.xml
scilab/modules/graphics/help/en_US/Matplot_properties.xml
scilab/modules/graphics/help/en_US/Sfgrayplot.xml
scilab/modules/graphics/help/en_US/Sgrayplot.xml
scilab/modules/graphics/help/en_US/arc_properties.xml
scilab/modules/graphics/help/en_US/autumncolormap.xml
scilab/modules/graphics/help/en_US/axes_properties.xml
scilab/modules/graphics/help/en_US/axis_properties.xml
scilab/modules/graphics/help/en_US/bar.xml
scilab/modules/graphics/help/en_US/barh.xml
scilab/modules/graphics/help/en_US/barhomogenize.xml
scilab/modules/graphics/help/en_US/bonecolormap.xml
scilab/modules/graphics/help/en_US/captions.xml
scilab/modules/graphics/help/en_US/champ.xml
scilab/modules/graphics/help/en_US/champ1.xml
scilab/modules/graphics/help/en_US/champ_properties.xml
scilab/modules/graphics/help/en_US/clf.xml
scilab/modules/graphics/help/en_US/color.xml
scilab/modules/graphics/help/en_US/colorbar.xml
scilab/modules/graphics/help/en_US/colordef.xml
scilab/modules/graphics/help/en_US/colormap.xml
scilab/modules/graphics/help/en_US/contour.xml
scilab/modules/graphics/help/en_US/contour2d.xml
scilab/modules/graphics/help/en_US/contour2di.xml
scilab/modules/graphics/help/en_US/contourf.xml
scilab/modules/graphics/help/en_US/coolcolormap.xml
scilab/modules/graphics/help/en_US/coppercolormap.xml
scilab/modules/graphics/help/en_US/copy.xml
scilab/modules/graphics/help/en_US/delete.xml
scilab/modules/graphics/help/en_US/dragrect.xml
scilab/modules/graphics/help/en_US/draw.xml
scilab/modules/graphics/help/en_US/drawaxis.xml
scilab/modules/graphics/help/en_US/drawlater.xml
scilab/modules/graphics/help/en_US/drawnow.xml
scilab/modules/graphics/help/en_US/errbar.xml
scilab/modules/graphics/help/en_US/eval3d.xml
scilab/modules/graphics/help/en_US/eval3dp.xml
scilab/modules/graphics/help/en_US/event_handler_functions.xml
scilab/modules/graphics/help/en_US/fchamp.xml
scilab/modules/graphics/help/en_US/fec.xml
scilab/modules/graphics/help/en_US/fec_properties.xml
scilab/modules/graphics/help/en_US/fgrayplot.xml
scilab/modules/graphics/help/en_US/figure_properties.xml
scilab/modules/graphics/help/en_US/fplot2d.xml
scilab/modules/graphics/help/en_US/fplot3d.xml
scilab/modules/graphics/help/en_US/fplot3d1.xml
scilab/modules/graphics/help/en_US/gca.xml
scilab/modules/graphics/help/en_US/gce.xml
scilab/modules/graphics/help/en_US/gcf.xml
scilab/modules/graphics/help/en_US/gda.xml
scilab/modules/graphics/help/en_US/gdf.xml
scilab/modules/graphics/help/en_US/genfac3d.xml
scilab/modules/graphics/help/en_US/geom3d.xml
scilab/modules/graphics/help/en_US/get.xml
scilab/modules/graphics/help/en_US/get_figure_handle.xml
scilab/modules/graphics/help/en_US/getfont.xml
scilab/modules/graphics/help/en_US/getlinestyle.xml
scilab/modules/graphics/help/en_US/getmark.xml
scilab/modules/graphics/help/en_US/glue.xml
scilab/modules/graphics/help/en_US/graduate.xml
scilab/modules/graphics/help/en_US/graphics_entities.xml
scilab/modules/graphics/help/en_US/graycolormap.xml
scilab/modules/graphics/help/en_US/grayplot.xml
scilab/modules/graphics/help/en_US/grayplot_properties.xml
scilab/modules/graphics/help/en_US/graypolarplot.xml
scilab/modules/graphics/help/en_US/hist3d.xml
scilab/modules/graphics/help/en_US/histplot.xml
scilab/modules/graphics/help/en_US/hotcolormap.xml
scilab/modules/graphics/help/en_US/hsv2rgb.xml
scilab/modules/graphics/help/en_US/hsvcolormap.xml
scilab/modules/graphics/help/en_US/is_handle_valid.xml
scilab/modules/graphics/help/en_US/isoview.xml
scilab/modules/graphics/help/en_US/jetcolormap.xml
scilab/modules/graphics/help/en_US/label_properties.xml
scilab/modules/graphics/help/en_US/legend.xml
scilab/modules/graphics/help/en_US/legend_properties.xml
scilab/modules/graphics/help/en_US/legends.xml
scilab/modules/graphics/help/en_US/mesh.xml
scilab/modules/graphics/help/en_US/milk_drop.xml
scilab/modules/graphics/help/en_US/move.xml
scilab/modules/graphics/help/en_US/name2rgb.xml
scilab/modules/graphics/help/en_US/newaxes.xml
scilab/modules/graphics/help/en_US/nf3d.xml
scilab/modules/graphics/help/en_US/oceancolormap.xml
scilab/modules/graphics/help/en_US/oldplot.xml
scilab/modules/graphics/help/en_US/param3d.xml
scilab/modules/graphics/help/en_US/param3d1.xml
scilab/modules/graphics/help/en_US/paramfplot2d.xml
scilab/modules/graphics/help/en_US/pie.xml
scilab/modules/graphics/help/en_US/pinkcolormap.xml
scilab/modules/graphics/help/en_US/plot.xml
scilab/modules/graphics/help/en_US/plot2d.xml
scilab/modules/graphics/help/en_US/plot2d1.xml
scilab/modules/graphics/help/en_US/plot2d2.xml
scilab/modules/graphics/help/en_US/plot2d3.xml
scilab/modules/graphics/help/en_US/plot2d4.xml
scilab/modules/graphics/help/en_US/plot2d_old_version.xml
scilab/modules/graphics/help/en_US/plot3d.xml
scilab/modules/graphics/help/en_US/plot3d1.xml
scilab/modules/graphics/help/en_US/plot3d2.xml
scilab/modules/graphics/help/en_US/plot3d3.xml
scilab/modules/graphics/help/en_US/plot3d_old_version.xml
scilab/modules/graphics/help/en_US/plotframe.xml
scilab/modules/graphics/help/en_US/plzr.xml
scilab/modules/graphics/help/en_US/polarplot.xml
scilab/modules/graphics/help/en_US/polyline_properties.xml
scilab/modules/graphics/help/en_US/rainbowcolormap.xml
scilab/modules/graphics/help/en_US/rectangle_properties.xml
scilab/modules/graphics/help/en_US/relocate_handle.xml
scilab/modules/graphics/help/en_US/replot.xml
scilab/modules/graphics/help/en_US/rgb2name.xml
scilab/modules/graphics/help/en_US/rotate.xml
scilab/modules/graphics/help/en_US/rotate_axes.xml
scilab/modules/graphics/help/en_US/rubberbox.xml
scilab/modules/graphics/help/en_US/sca.xml
scilab/modules/graphics/help/en_US/scf.xml
scilab/modules/graphics/help/en_US/sda.xml
scilab/modules/graphics/help/en_US/sdf.xml
scilab/modules/graphics/help/en_US/segs_properties.xml
scilab/modules/graphics/help/en_US/set.xml
scilab/modules/graphics/help/en_US/set_posfig_dim.xml
scilab/modules/graphics/help/en_US/seteventhandler.xml
scilab/modules/graphics/help/en_US/show_pixmap.xml
scilab/modules/graphics/help/en_US/springcolormap.xml
scilab/modules/graphics/help/en_US/square.xml
scilab/modules/graphics/help/en_US/stringbox.xml
scilab/modules/graphics/help/en_US/subplot.xml
scilab/modules/graphics/help/en_US/summercolormap.xml
scilab/modules/graphics/help/en_US/surf.xml
scilab/modules/graphics/help/en_US/surface_properties.xml
scilab/modules/graphics/help/en_US/swap_handles.xml
scilab/modules/graphics/help/en_US/text_properties.xml
scilab/modules/graphics/help/en_US/title.xml
scilab/modules/graphics/help/en_US/twinkle.xml
scilab/modules/graphics/help/en_US/unzoom.xml
scilab/modules/graphics/help/en_US/whitecolormap.xml
scilab/modules/graphics/help/en_US/wintercolormap.xml
scilab/modules/graphics/help/en_US/xarc.xml
scilab/modules/graphics/help/en_US/xarcs.xml
scilab/modules/graphics/help/en_US/xarrows.xml
scilab/modules/graphics/help/en_US/xchange.xml
scilab/modules/graphics/help/en_US/xclip.xml
scilab/modules/graphics/help/en_US/xfarc.xml
scilab/modules/graphics/help/en_US/xfarcs.xml
scilab/modules/graphics/help/en_US/xfpoly.xml
scilab/modules/graphics/help/en_US/xfpolys.xml
scilab/modules/graphics/help/en_US/xfrect.xml
scilab/modules/graphics/help/en_US/xgetech.xml
scilab/modules/graphics/help/en_US/xgetmouse.xml
scilab/modules/graphics/help/en_US/xgraduate.xml
scilab/modules/graphics/help/en_US/xgrid.xml
scilab/modules/graphics/help/en_US/xlfont.xml
scilab/modules/graphics/help/en_US/xload.xml
scilab/modules/graphics/help/en_US/xnumb.xml
scilab/modules/graphics/help/en_US/xpoly.xml
scilab/modules/graphics/help/en_US/xpolys.xml
scilab/modules/graphics/help/en_US/xrect.xml
scilab/modules/graphics/help/en_US/xrects.xml
scilab/modules/graphics/help/en_US/xrpoly.xml
scilab/modules/graphics/help/en_US/xsave.xml
scilab/modules/graphics/help/en_US/xsegs.xml
scilab/modules/graphics/help/en_US/xset.xml
scilab/modules/graphics/help/en_US/xsetech.xml
scilab/modules/graphics/help/en_US/xstring.xml
scilab/modules/graphics/help/en_US/xstringb.xml
scilab/modules/graphics/help/en_US/xstringl.xml
scilab/modules/graphics/help/en_US/xtitle.xml
scilab/modules/graphics/help/en_US/zoom_rect.xml
scilab/modules/graphics/help/fr_FR/bar.xml
scilab/modules/graphics/help/fr_FR/barh.xml
scilab/modules/graphics/help/fr_FR/barhomogenize.xml
scilab/modules/graphics/help/fr_FR/contour2di.xml
scilab/modules/graphics/help/fr_FR/contourf.xml
scilab/modules/graphics/help/fr_FR/dragrect.xml
scilab/modules/graphics/help/fr_FR/drawaxis.xml
scilab/modules/graphics/help/fr_FR/errbar.xml
scilab/modules/graphics/help/fr_FR/eval3d.xml
scilab/modules/graphics/help/fr_FR/eval3dp.xml
scilab/modules/graphics/help/fr_FR/fec.xml
scilab/modules/graphics/help/fr_FR/fgrayplot.xml
scilab/modules/graphics/help/fr_FR/genfac3d.xml
scilab/modules/graphics/help/fr_FR/geom3d.xml
scilab/modules/graphics/help/fr_FR/get_figure_handle.xml
scilab/modules/graphics/help/fr_FR/graduate.xml
scilab/modules/graphics/help/fr_FR/hist3d.xml
scilab/modules/graphics/help/fr_FR/histplot.xml
scilab/modules/graphics/help/fr_FR/is_handle_valid.xml
scilab/modules/graphics/help/fr_FR/legends.xml
scilab/modules/graphics/help/fr_FR/milk_drop.xml
scilab/modules/graphics/help/fr_FR/nf3d.xml
scilab/modules/graphics/help/fr_FR/paramfplot2d.xml
scilab/modules/graphics/help/fr_FR/pie.xml
scilab/modules/graphics/help/fr_FR/plotframe.xml
scilab/modules/graphics/help/fr_FR/relocate_handle.xml
scilab/modules/graphics/help/fr_FR/replot.xml
scilab/modules/graphics/help/fr_FR/rotate.xml
scilab/modules/graphics/help/fr_FR/rotate_axes.xml
scilab/modules/graphics/help/fr_FR/square.xml
scilab/modules/graphics/help/fr_FR/stringbox.xml
scilab/modules/graphics/help/fr_FR/subplot.xml
scilab/modules/graphics/help/fr_FR/swap_handles.xml
scilab/modules/graphics/help/fr_FR/xarc.xml
scilab/modules/graphics/help/fr_FR/xarcs.xml
scilab/modules/graphics/help/fr_FR/xarrows.xml
scilab/modules/graphics/help/fr_FR/xchange.xml
scilab/modules/graphics/help/fr_FR/xclip.xml
scilab/modules/graphics/help/fr_FR/xfarc.xml
scilab/modules/graphics/help/fr_FR/xfarcs.xml
scilab/modules/graphics/help/fr_FR/xfpoly.xml
scilab/modules/graphics/help/fr_FR/xfrect.xml
scilab/modules/graphics/help/fr_FR/xgetech.xml
scilab/modules/graphics/help/fr_FR/xgraduate.xml
scilab/modules/graphics/help/fr_FR/xgrid.xml
scilab/modules/graphics/help/fr_FR/xnumb.xml
scilab/modules/graphics/help/fr_FR/xpoly.xml
scilab/modules/graphics/help/fr_FR/xpolys.xml
scilab/modules/graphics/help/fr_FR/xrect.xml
scilab/modules/graphics/help/fr_FR/xrects.xml
scilab/modules/graphics/help/fr_FR/xrpoly.xml
scilab/modules/graphics/help/fr_FR/xsegs.xml
scilab/modules/graphics/help/fr_FR/xset.xml
scilab/modules/graphics/help/fr_FR/xsetech.xml
scilab/modules/graphics/help/fr_FR/xstring.xml
scilab/modules/graphics/help/fr_FR/xstringb.xml
scilab/modules/graphics/help/fr_FR/xstringl.xml
scilab/modules/graphics/help/pt_BR/GlobalProperty.xml
scilab/modules/graphics/help/pt_BR/LineSpec.xml
scilab/modules/graphics/help/pt_BR/Matplot.xml
scilab/modules/graphics/help/pt_BR/Matplot1.xml
scilab/modules/graphics/help/pt_BR/Matplot_properties.xml
scilab/modules/graphics/help/pt_BR/Sfgrayplot.xml
scilab/modules/graphics/help/pt_BR/Sgrayplot.xml
scilab/modules/graphics/help/pt_BR/arc_properties.xml
scilab/modules/graphics/help/pt_BR/autumncolormap.xml
scilab/modules/graphics/help/pt_BR/axes_properties.xml
scilab/modules/graphics/help/pt_BR/axis_properties.xml
scilab/modules/graphics/help/pt_BR/bar.xml
scilab/modules/graphics/help/pt_BR/barh.xml
scilab/modules/graphics/help/pt_BR/barhomogenize.xml
scilab/modules/graphics/help/pt_BR/bonecolormap.xml
scilab/modules/graphics/help/pt_BR/captions.xml
scilab/modules/graphics/help/pt_BR/champ.xml
scilab/modules/graphics/help/pt_BR/champ1.xml
scilab/modules/graphics/help/pt_BR/champ_properties.xml
scilab/modules/graphics/help/pt_BR/clf.xml
scilab/modules/graphics/help/pt_BR/color.xml
scilab/modules/graphics/help/pt_BR/colorbar.xml
scilab/modules/graphics/help/pt_BR/colordef.xml
scilab/modules/graphics/help/pt_BR/colormap.xml
scilab/modules/graphics/help/pt_BR/contour.xml
scilab/modules/graphics/help/pt_BR/contour2d.xml
scilab/modules/graphics/help/pt_BR/contour2di.xml
scilab/modules/graphics/help/pt_BR/contourf.xml
scilab/modules/graphics/help/pt_BR/coolcolormap.xml
scilab/modules/graphics/help/pt_BR/coppercolormap.xml
scilab/modules/graphics/help/pt_BR/copy.xml
scilab/modules/graphics/help/pt_BR/delete.xml
scilab/modules/graphics/help/pt_BR/dragrect.xml
scilab/modules/graphics/help/pt_BR/draw.xml
scilab/modules/graphics/help/pt_BR/drawaxis.xml
scilab/modules/graphics/help/pt_BR/drawlater.xml
scilab/modules/graphics/help/pt_BR/drawnow.xml
scilab/modules/graphics/help/pt_BR/errbar.xml
scilab/modules/graphics/help/pt_BR/eval3d.xml
scilab/modules/graphics/help/pt_BR/eval3dp.xml
scilab/modules/graphics/help/pt_BR/event_handler_functions.xml
scilab/modules/graphics/help/pt_BR/fchamp.xml
scilab/modules/graphics/help/pt_BR/fec.xml
scilab/modules/graphics/help/pt_BR/fec_properties.xml
scilab/modules/graphics/help/pt_BR/fgrayplot.xml
scilab/modules/graphics/help/pt_BR/figure_properties.xml
scilab/modules/graphics/help/pt_BR/fplot2d.xml
scilab/modules/graphics/help/pt_BR/fplot3d.xml
scilab/modules/graphics/help/pt_BR/fplot3d1.xml
scilab/modules/graphics/help/pt_BR/gca.xml
scilab/modules/graphics/help/pt_BR/gce.xml
scilab/modules/graphics/help/pt_BR/gcf.xml
scilab/modules/graphics/help/pt_BR/gda.xml
scilab/modules/graphics/help/pt_BR/gdf.xml
scilab/modules/graphics/help/pt_BR/genfac3d.xml
scilab/modules/graphics/help/pt_BR/geom3d.xml
scilab/modules/graphics/help/pt_BR/get.xml
scilab/modules/graphics/help/pt_BR/get_figure_handle.xml
scilab/modules/graphics/help/pt_BR/getfont.xml
scilab/modules/graphics/help/pt_BR/getlinestyle.xml
scilab/modules/graphics/help/pt_BR/getmark.xml
scilab/modules/graphics/help/pt_BR/glue.xml
scilab/modules/graphics/help/pt_BR/graduate.xml
scilab/modules/graphics/help/pt_BR/graphics_entities.xml
scilab/modules/graphics/help/pt_BR/graycolormap.xml
scilab/modules/graphics/help/pt_BR/grayplot.xml
scilab/modules/graphics/help/pt_BR/grayplot_properties.xml
scilab/modules/graphics/help/pt_BR/graypolarplot.xml
scilab/modules/graphics/help/pt_BR/hist3d.xml
scilab/modules/graphics/help/pt_BR/histplot.xml
scilab/modules/graphics/help/pt_BR/hotcolormap.xml
scilab/modules/graphics/help/pt_BR/hsv2rgb.xml
scilab/modules/graphics/help/pt_BR/hsvcolormap.xml
scilab/modules/graphics/help/pt_BR/is_handle_valid.xml
scilab/modules/graphics/help/pt_BR/isoview.xml
scilab/modules/graphics/help/pt_BR/jetcolormap.xml
scilab/modules/graphics/help/pt_BR/label_properties.xml
scilab/modules/graphics/help/pt_BR/legend.xml
scilab/modules/graphics/help/pt_BR/legend_properties.xml
scilab/modules/graphics/help/pt_BR/legends.xml
scilab/modules/graphics/help/pt_BR/mesh.xml
scilab/modules/graphics/help/pt_BR/milk_drop.xml
scilab/modules/graphics/help/pt_BR/move.xml
scilab/modules/graphics/help/pt_BR/name2rgb.xml
scilab/modules/graphics/help/pt_BR/newaxes.xml
scilab/modules/graphics/help/pt_BR/nf3d.xml
scilab/modules/graphics/help/pt_BR/oceancolormap.xml
scilab/modules/graphics/help/pt_BR/oldplot.xml
scilab/modules/graphics/help/pt_BR/param3d.xml
scilab/modules/graphics/help/pt_BR/param3d1.xml
scilab/modules/graphics/help/pt_BR/param3d_properties.xml
scilab/modules/graphics/help/pt_BR/paramfplot2d.xml
scilab/modules/graphics/help/pt_BR/pie.xml
scilab/modules/graphics/help/pt_BR/pinkcolormap.xml
scilab/modules/graphics/help/pt_BR/plot.xml
scilab/modules/graphics/help/pt_BR/plot2d.xml
scilab/modules/graphics/help/pt_BR/plot2d1.xml
scilab/modules/graphics/help/pt_BR/plot2d2.xml
scilab/modules/graphics/help/pt_BR/plot2d3.xml
scilab/modules/graphics/help/pt_BR/plot2d4.xml
scilab/modules/graphics/help/pt_BR/plot2d_old_version.xml
scilab/modules/graphics/help/pt_BR/plot3d.xml
scilab/modules/graphics/help/pt_BR/plot3d1.xml
scilab/modules/graphics/help/pt_BR/plot3d2.xml
scilab/modules/graphics/help/pt_BR/plot3d3.xml
scilab/modules/graphics/help/pt_BR/plot3d_old_version.xml
scilab/modules/graphics/help/pt_BR/plotframe.xml
scilab/modules/graphics/help/pt_BR/plzr.xml
scilab/modules/graphics/help/pt_BR/polarplot.xml
scilab/modules/graphics/help/pt_BR/polyline_properties.xml
scilab/modules/graphics/help/pt_BR/rainbowcolormap.xml
scilab/modules/graphics/help/pt_BR/rectangle_properties.xml
scilab/modules/graphics/help/pt_BR/relocate_handle.xml
scilab/modules/graphics/help/pt_BR/replot.xml
scilab/modules/graphics/help/pt_BR/rgb2name.xml
scilab/modules/graphics/help/pt_BR/rotate.xml
scilab/modules/graphics/help/pt_BR/rotate_axes.xml
scilab/modules/graphics/help/pt_BR/rubberbox.xml
scilab/modules/graphics/help/pt_BR/sca.xml
scilab/modules/graphics/help/pt_BR/scf.xml
scilab/modules/graphics/help/pt_BR/sda.xml
scilab/modules/graphics/help/pt_BR/sdf.xml
scilab/modules/graphics/help/pt_BR/segs_properties.xml
scilab/modules/graphics/help/pt_BR/set.xml
scilab/modules/graphics/help/pt_BR/set_posfig_dim.xml
scilab/modules/graphics/help/pt_BR/seteventhandler.xml
scilab/modules/graphics/help/pt_BR/show_pixmap.xml
scilab/modules/graphics/help/pt_BR/springcolormap.xml
scilab/modules/graphics/help/pt_BR/square.xml
scilab/modules/graphics/help/pt_BR/stringbox.xml
scilab/modules/graphics/help/pt_BR/subplot.xml
scilab/modules/graphics/help/pt_BR/summercolormap.xml
scilab/modules/graphics/help/pt_BR/surf.xml
scilab/modules/graphics/help/pt_BR/surface_properties.xml
scilab/modules/graphics/help/pt_BR/swap_handles.xml
scilab/modules/graphics/help/pt_BR/text_properties.xml
scilab/modules/graphics/help/pt_BR/title.xml
scilab/modules/graphics/help/pt_BR/twinkle.xml
scilab/modules/graphics/help/pt_BR/unzoom.xml
scilab/modules/graphics/help/pt_BR/whitecolormap.xml
scilab/modules/graphics/help/pt_BR/wintercolormap.xml
scilab/modules/graphics/help/pt_BR/xarc.xml
scilab/modules/graphics/help/pt_BR/xarcs.xml
scilab/modules/graphics/help/pt_BR/xarrows.xml
scilab/modules/graphics/help/pt_BR/xchange.xml
scilab/modules/graphics/help/pt_BR/xclip.xml
scilab/modules/graphics/help/pt_BR/xfarc.xml
scilab/modules/graphics/help/pt_BR/xfarcs.xml
scilab/modules/graphics/help/pt_BR/xfpoly.xml
scilab/modules/graphics/help/pt_BR/xfpolys.xml
scilab/modules/graphics/help/pt_BR/xfrect.xml
scilab/modules/graphics/help/pt_BR/xgetech.xml
scilab/modules/graphics/help/pt_BR/xgetmouse.xml
scilab/modules/graphics/help/pt_BR/xgraduate.xml
scilab/modules/graphics/help/pt_BR/xgrid.xml
scilab/modules/graphics/help/pt_BR/xlfont.xml
scilab/modules/graphics/help/pt_BR/xload.xml
scilab/modules/graphics/help/pt_BR/xnumb.xml
scilab/modules/graphics/help/pt_BR/xpoly.xml
scilab/modules/graphics/help/pt_BR/xpolys.xml
scilab/modules/graphics/help/pt_BR/xrect.xml
scilab/modules/graphics/help/pt_BR/xrects.xml
scilab/modules/graphics/help/pt_BR/xrpoly.xml
scilab/modules/graphics/help/pt_BR/xsave.xml
scilab/modules/graphics/help/pt_BR/xsegs.xml
scilab/modules/graphics/help/pt_BR/xset.xml
scilab/modules/graphics/help/pt_BR/xsetech.xml
scilab/modules/graphics/help/pt_BR/xstring.xml
scilab/modules/graphics/help/pt_BR/xstringb.xml
scilab/modules/graphics/help/pt_BR/xstringl.xml
scilab/modules/graphics/help/pt_BR/xtitle.xml
scilab/modules/graphics/help/pt_BR/zoom_rect.xml

index 132b5b9..e2602f2 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[// --------------------
+    <programlisting role="example"><![CDATA[ 
+// --------------------
 // With the plot command :
 // --------------------
 x=1:10; // Init.
@@ -396,9 +397,7 @@ subplot(211)
 surf(Z,'facecol','interp','ydat',101:110,'edgecol','mage')
 subplot(212)
 surf(Z,'edgeco','b','marker','d','markersiz',9,'markerfac','k','xdata',-50:-41)
-
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 571761f..bab242f 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[x=1:0.1:10; // Init.
+    <programlisting role="example"><![CDATA[ 
+x=1:0.1:10; // Init.
 plot(x,sin(x),'r.->') // plots a dash-dotted line with a right-pointing triangle centered on each points.
 clf();
 
@@ -316,8 +317,7 @@ plot(x,x.*x,'*cya--')
 clf();
 t=0:%pi/20:2*%pi;
 plot(t,sin(t),'ro-.',t,cos(t),'cya+',t,abs(sin(t)),'--mo')
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 4340497..535cb2e 100644 (file)
@@ -269,14 +269,12 @@ Matplot(a,&lt;opt_args&gt;)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 Matplot([1 2 3;4 5 6])
 clf()
 // draw the current colormap 
 Matplot((1:xget("lastpattern")))
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 72f6ce2..58f6a5a 100644 (file)
@@ -50,8 +50,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 //--- first example
 clf();
 ax=gca();//get current axes handle
@@ -67,7 +66,6 @@ Matplot1(a,[5,6,7,8])
 //--- second example  (animation)
 n=100;
 
-
 clf();
 f=gcf();//get current figure handle
 f.pixmap='on';//double buffer mode
@@ -84,9 +82,7 @@ for k=-n:n,
   Matplot1(a,[k1,2,k1+7,9])
   show_pixmap() //send double buffer to screen
 end
-
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 7dc9f82..cde4978 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-    
-   Matplot((1:xget("lastpattern")))
-   e=gce(); // get current entity
+    <programlisting role="example"><![CDATA[ 
+Matplot((1:xget("lastpattern")))
+e=gce(); // get current entity
 
-   e.data=e.data($:-1:1) // reverse order
-
-  ]]></programlisting>
+e.data=e.data($:-1:1) // reverse order
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index d1b47ec..dcb93d2 100644 (file)
@@ -68,12 +68,13 @@ Sfgrayplot(x,y,f [,strf, rect, nax, zminmax, colminmax, mesh, colout])</synopsis
     plot is smoothed. The function <literal>fec</literal> is used for smoothing. The
     surface is plotted assuming that it is linear on a set of triangles built
     from the grid (here with n1=5, n2=3):</para>
-    <programlisting><![CDATA[
-             _____________
-             | /| /| /| /|
-             |/_|/_|/_|/_| 
-             | /| /| /| /| 
-             |/_|/_|/_|/_|]]></programlisting>
+    <programlisting role = ""><![CDATA[ 
+_____________
+| /| /| /| /|
+|/_|/_|/_|/_| 
+| /| /| /| /| 
+|/_|/_|/_|/_|
+ ]]></programlisting>
     <para>The function <link linkend="colorbar">colorbar</link> may be used to see the color scale (but
        you must know (or compute) the min and max values).</para>
     <para>Instead of Sfgrayplot, you can use <link linkend="Sgrayplot">Sgrayplot</link> and this may be
@@ -82,7 +83,7 @@ Sfgrayplot(x,y,f [,strf, rect, nax, zminmax, colminmax, mesh, colout])</synopsis
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 // example #1: plot 4 surfaces
 function z=surf1(x,y), z=x*y, endfunction
 function z=surf2(x,y), z=x^2-y^2, endfunction
@@ -94,21 +95,21 @@ x = linspace(-1,1,60);
 y = linspace(-1,1,60);
 drawlater() ;
 subplot(2,2,1)
-   colorbar(-1,1,[1,64])
-   Sfgrayplot(x,y,surf1,strf="041",colminmax=[1,64])
-   xtitle("f(x,y) = x*y")
+  colorbar(-1,1,[1,64])
+  Sfgrayplot(x,y,surf1,strf="041",colminmax=[1,64])
+  xtitle("f(x,y) = x*y")
 subplot(2,2,2)
-   colorbar(-1,1,[65,128])
-   Sfgrayplot(x,y,surf2,strf="041",colminmax=[65,128])
-   xtitle("f(x,y) = x^2-y^2")
+  colorbar(-1,1,[65,128])
+  Sfgrayplot(x,y,surf2,strf="041",colminmax=[65,128])
+  xtitle("f(x,y) = x^2-y^2")
 subplot(2,2,3)
-   colorbar(-1,2,[65,128])
-   Sfgrayplot(x,y,surf3,strf="041",colminmax=[65,128])
-   xtitle("f(x,y) = x^3+y^2")
+  colorbar(-1,2,[65,128])
+  Sfgrayplot(x,y,surf3,strf="041",colminmax=[65,128])
+  xtitle("f(x,y) = x^3+y^2")
 subplot(2,2,4)
-   colorbar(0,2,[1,64])
-   Sfgrayplot(x,y,surf4,strf="041",colminmax=[1,64])
-   xtitle("f(x,y) = x^2+y^2")
+  colorbar(0,2,[1,64])
+  Sfgrayplot(x,y,surf4,strf="041",colminmax=[1,64])
+  xtitle("f(x,y) = x^2+y^2")
 drawnow() ;
 xselect()
 
@@ -141,8 +142,7 @@ fcontour2d(x,y,surf3,[-0.5, 1],style=[1 1 1],strf="000")
 xtitle("f(x,y) = x^3+y^2, with parts under z = -0.5 and upper z = 1 removed")
 drawnow() ;
 xselect()
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 76e2fbc..3ecd3e3 100644 (file)
@@ -234,12 +234,13 @@ Sgrayplot(x,y,z [,strf, rect, nax, zminmax, colminmax, mesh, colout])</synopsis>
     plot is smoothed. The function <literal>fec</literal> is used for smoothing. The
     surface is plotted assuming that it is linear on a set of triangles built
     from the grid (here with n1=5, n2=3):</para>
-    <programlisting><![CDATA[
-             _____________
-             | /| /| /| /|
-             |/_|/_|/_|/_| 
-             | /| /| /| /| 
-             |/_|/_|/_|/_|]]></programlisting>
+    <programlisting role = ""><![CDATA[ 
+_____________
+| /| /| /| /|
+|/_|/_|/_|/_| 
+| /| /| /| /| 
+|/_|/_|/_|/_|
+ ]]></programlisting>
     <para>The function <link linkend="colorbar">colorbar</link> may be used to see the color scale.</para>
     <para>The parameter <literal>zminmax</literal> is useful for animation purpose (see an
        example after) and the parameter <literal>colminmax</literal> lets the user choose a part
@@ -248,7 +249,7 @@ Sgrayplot(x,y,z [,strf, rect, nax, zminmax, colminmax, mesh, colout])</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 // example #1
 x=-10:10; y=-10:10;m =rand(21,21);
 clf()
@@ -278,11 +279,11 @@ Sgrayplot(x,y,cos(t(1))*z, strf="042", zminmax=[-1,1])
 c=gce(),e=c.children
 xtitle("Kaa''s eyes")
 for i = 1:nt
-   e.data(:,3)=matrix(cos(t(i))*z,-1,1);
-   show_pixmap()
+  e.data(:,3)=matrix(cos(t(i))*z,-1,1);
+  show_pixmap()
 end
 f.pixmap='off';
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index a9544b4..779f3d8 100644 (file)
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
-   a=get("current_axes");//get the handle of the newly created axes
-   a.data_bounds=[-2,-2;2,2];
-
-   xarc(-1.5,1.5,3,3,0,360*64)
-
-   arc=get("hdl"); //get handle on current entity (here the arc entity)
-   arc.fill_mode="on";
-   arc.foreground=5;
-   arc.data(:,[3 6])=[2 270*64];  
-   xfarc(-.5,1,.4,.6,0,360*64);
-   arc.visible="off";
-
- </programlisting>
+    <programlisting role="example"><![CDATA[ 
+a=get("current_axes");//get the handle of the newly created axes
+a.data_bounds=[-2,-2;2,2];
+
+xarc(-1.5,1.5,3,3,0,360*64)
+
+arc=get("hdl"); //get handle on current entity (here the arc entity)
+arc.fill_mode="on";
+arc.foreground=5;
+arc.data(:,[3 6])=[2 270*64];  
+xfarc(-.5,1,.4,.6,0,360*64);
+arc.visible="off";
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 9c45dc3..dcf0f6d 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 f = scf();
 plot3d1();
 f.color_map = autumncolormap(32);
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index fc90bae..4187a86 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[  
-   lines(0) // disables vertical paging 
-   a=get("current_axes")//get the handle of the newly created axes
-   a.axes_visible="on"; // makes the axes visible
-   a.font_size=3; //set the tics label font size
-   a.x_location="top"; //set the x axis position
-   a.data_bounds=[-100,-2,-1;100,2,1]; //set the boundary values for the x, y and z coordinates.
-   a.sub_tics=[5,0];
-   a.labels_font_color=5;
-   a.grid=[2,2];
-   a.box="off";
+    <programlisting role="example"><![CDATA[ 
+lines(0) // disables vertical paging 
+a=get("current_axes")//get the handle of the newly created axes
+a.axes_visible="on"; // makes the axes visible
+a.font_size=3; //set the tics label font size
+a.x_location="top"; //set the x axis position
+a.data_bounds=[-100,-2,-1;100,2,1]; //set the boundary values for the x, y and z coordinates.
+a.sub_tics=[5,0];
+a.labels_font_color=5;
+a.grid=[2,2];
+a.box="off";
    
-   // Example with 3D axes
-   clf(); //clear the graphics window
-   x=0.1:0.1:2*%pi;plot2d(x-.3,sin(x)*7+.2);
-   a=gca(); // get the handle of the current axes
-   a.grid=[1 -1 -1]; //make x-grid
-   a.rotation_angles=[70 250]; //turn the axes with giving angles
-   a.grid=[1 6 -1]; //make y-grid
-   a.view="2d"; //return te the 2d view
-   a.box="back_half"; 
-   a.labels_font_color=5;
-   a.children.children.thickness=4;
-   a.children.children.polyline_style=3;
-   a.view="3d"; //return te the 3d view
-   a.children.children.thickness=1;
-   a.children.children.foreground=2;
-   a.grid=[1 6 3]; //make z-grid
-   a.parent.background=4;
-   a.background=7;
-   plot2d(cos(x)+1,3*sin(x)-3);
-   plot2d(cos(x)+7,3*sin(x)+3);
-   a.children(2).children.polyline_style=2;
-   a.children(1).children.polyline_style=4;
-   a.children(1).children.foreground=5;
-   a.children(2).children.foreground=14;
-   a.parent.figure_size= [1200,800];
-   a.box="on";
-   a.labels_font_size=4;
-   a.parent.background=8;
-   a.parent.figure_size= [400,200];
-   a.rotation_angles=[0 260];
-   delete(a.children(2)); 
-   delete(); // delete current object
+// Example with 3D axes
+clf(); //clear the graphics window
+x=0.1:0.1:2*%pi;plot2d(x-.3,sin(x)*7+.2);
+a=gca(); // get the handle of the current axes
+a.grid=[1 -1 -1]; //make x-grid
+a.rotation_angles=[70 250]; //turn the axes with giving angles
+a.grid=[1 6 -1]; //make y-grid
+a.view="2d"; //return te the 2d view
+a.box="back_half"; 
+a.labels_font_color=5;
+a.children.children.thickness=4;
+a.children.children.polyline_style=3;
+a.view="3d"; //return te the 3d view
+a.children.children.thickness=1;
+a.children.children.foreground=2;
+a.grid=[1 6 3]; //make z-grid
+a.parent.background=4;
+a.background=7;
+plot2d(cos(x)+1,3*sin(x)-3);
+plot2d(cos(x)+7,3*sin(x)+3);
+a.children(2).children.polyline_style=2;
+a.children(1).children.polyline_style=4;
+a.children(1).children.foreground=5;
+a.children(2).children.foreground=14;
+a.parent.figure_size= [1200,800];
+a.box="on";
+a.labels_font_size=4;
+a.parent.background=8;
+a.parent.figure_size= [400,200];
+a.rotation_angles=[0 260];
+delete(a.children(2)); 
+delete(); // delete current object
    
-   a = gca();
-   a.labels_font_size=1;
-   a.auto_clear= "on";
-   x=0:0.1:2.5*%pi;plot2d(10*cos(x),sin(x));
+a = gca();
+a.labels_font_size=1;
+a.auto_clear= "on";
+x=0:0.1:2.5*%pi;plot2d(10*cos(x),sin(x));
 
-   a.data_bounds(:,1) = [1;15] ; // set positive bounds for X axe
-   a.log_flags = "lnn" ; // set X axes to logarithmic scale
-   a.log_flags = "nnn" ; // switch back to linear scale
+a.data_bounds(:,1) = [1;15] ; // set positive bounds for X axe
+a.log_flags = "lnn" ; // set X axes to logarithmic scale
+a.log_flags = "nnn" ; // switch back to linear scale
 
-   a=gca(); 
-   a.rotation_angles=[45 45];
-   a.data_bounds=[-20,-3,-2;20 3 ,2];
-   xrect([-4 0.5 8 1]);
-   a.auto_clear = "off" ;
-   a.isoview="on"; // isoview mode
-   xrect([-2 0.25 4 0.5]);
-   a.children(1).fill_mode="on";
-   a.axes_visible="off";
-   a.children(1).data=[-2 0.25 -1 4 0.5];
-   a.children(2).data=[-4 0.5 1 8 1];
-   x=2*%pi*(0:7)/8;
-   xv=[.2*sin(x);.9*sin(x)];yv=[.2*cos(x);.9*cos(x)];
-   xsegs(10*xv,yv,1:8)
-   s=a.children(1);
-   s.arrow_size=1;
-   s.segs_color=5;
-   a.data_bounds //the boundary values for the x,y and z coordinates
-   a.view="2d";
-   a.data_bounds=[-10,-1; 10,1]; // set the boundary values for the two-dimensional views
+a=gca(); 
+a.rotation_angles=[45 45];
+a.data_bounds=[-20,-3,-2;20 3 ,2];
+xrect([-4 0.5 8 1]);
+a.auto_clear = "off" ;
+a.isoview="on"; // isoview mode
+xrect([-2 0.25 4 0.5]);
+a.children(1).fill_mode="on";
+a.axes_visible="off";
+a.children(1).data=[-2 0.25 -1 4 0.5];
+a.children(2).data=[-4 0.5 1 8 1];
+x=2*%pi*(0:7)/8;
+xv=[.2*sin(x);.9*sin(x)];yv=[.2*cos(x);.9*cos(x)];
+xsegs(10*xv,yv,1:8)
+s=a.children(1);
+s.arrow_size=1;
+s.segs_color=5;
+a.data_bounds //the boundary values for the x,y and z coordinates
+a.view="2d";
+a.data_bounds=[-10,-1; 10,1]; // set the boundary values for the two-dimensional views
    
-   // Example on axes model
-   da=gda() // get the handle on axes model to view and edit the fields
-   // title by default
-   da.title.text="My Default@Title"
-   da.title.foreground = 12;
-   da.title.font_size = 4;
-   // x labels default
-   da.x_label.text="x";
-   da.x_label.font_style = 8;
-   da.x_label.font_size = 2;
-   da.x_label.foreground = 5;
-   da.x_location = "middle";
-   // y labels default
-   da.y_label.text="y";
-   da.y_label.font_style = 3;
-   da.y_label.font_size = 5;
-   da.y_label.foreground = 3;
-   da.y_location = "right";
-   da.thickness = 2;
-   da.foreground = 7;
-   // the plot
-   x=(0:0.1:2*%pi)';
-   plot2d(x,[sin(x),sin(2*x),sin(3*x)],style=[1,2,3],rect=[0,-2,2*%pi,2]);
-   sda() // back to default axes model
+// Example on axes model
+da=gda() // get the handle on axes model to view and edit the fields
+// title by default
+da.title.text="My Default@Title"
+da.title.foreground = 12;
+da.title.font_size = 4;
+// x labels default
+da.x_label.text="x";
+da.x_label.font_style = 8;
+da.x_label.font_size = 2;
+da.x_label.foreground = 5;
+da.x_location = "middle";
+// y labels default
+da.y_label.text="y";
+da.y_label.font_style = 3;
+da.y_label.font_size = 5;
+da.y_label.foreground = 3;
+da.y_location = "right";
+da.thickness = 2;
+da.foreground = 7;
+// the plot
+x=(0:0.1:2*%pi)';
+plot2d(x,[sin(x),sin(2*x),sin(3*x)],style=[1,2,3],rect=[0,-2,2*%pi,2]);
+sda() // back to default axes model
  ]]></programlisting>
   </refsection>
   <refsection>
index 20ae920..1f65a37 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
+a=get("current_axes");//get the handle of the newly created axes
+a.data_bounds=[-1,-1;10,10];
 
-
-  a=get("current_axes");//get the handle of the newly created axes
-  a.data_bounds=[-1,-1;10,10];
-
-  drawaxis(x=2:7,y=4,dir='u');
-  a1=a.children(1)
-  a1.xtics_coord=[1 4 5  8 10];
-  a1.tics_color=2;
-  a1.labels_font_size=3;
-  a1.tics_direction="bottom";
-  a1.tics_labels= [" February" "May"  "june" "August"  "October"];
+drawaxis(x=2:7,y=4,dir='u');
+a1=a.children(1)
+a1.xtics_coord=[1 4 5  8 10];
+a1.tics_color=2;
+a1.labels_font_size=3;
+a1.tics_direction="bottom";
+a1.tics_labels= [" February" "May"  "june" "August"  "October"];
   
-  drawaxis(x=1.2:1:10,y=5,dir='u',textcolor=13);
-  a2=get("hdl")
-  a2.sub_tics=0;
-  a2.tics_segment="off";
-  a2.ytics_coord=4;
+drawaxis(x=1.2:1:10,y=5,dir='u',textcolor=13);
+a2=get("hdl")
+a2.sub_tics=0;
+a2.tics_segment="off";
+a2.ytics_coord=4;
   
-  drawaxis(x=-1,y=0:1:7,dir='r',fontsize=10,textcolor=5,ticscolor=6,sub_int=10)
-  a3=get("hdl");
-  a3.tics_labels= 'B'  +string(0:7);
-  a3.tics_direction="left";
-
-   
-  ]]></programlisting>
+drawaxis(x=-1,y=0:1:7,dir='r',fontsize=10,textcolor=5,ticscolor=6,sub_int=10)
+a3=get("hdl");
+a3.tics_labels= 'B'  +string(0:7);
+a3.tics_direction="left";
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 1014d7c..44b6d7b 100644 (file)
@@ -99,7 +99,7 @@ bar([h],x,y [,width [,color [,style]]])</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 // First example: draw a bar (i.e a polyline with polyline_style type =6) with
 // width=0.5 and color='yellow' and default style='grouped', x=1:length(y).
 scf(0);
@@ -120,7 +120,7 @@ bar(x,y,'stacked');
 scf(3);
 x=[1 2 5]; y=[1 4 7;2 5 8;3 6 9];
 bar(x,y,0.2,'green');
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 314fa35..de462e8 100644 (file)
@@ -99,7 +99,7 @@ barh([h],x,y [,width [,color [,style]]])</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 // First example: draw a bar (i.e a polyline with polyline_style type =6),default style='grouped', width=0.5, color='yellow', default x=1:length(y)
 scf(0);
 y=[1 -3 5];
@@ -119,7 +119,7 @@ barh(x,y,'stacked');
 scf(3);
 x=[1 2 5]; y=[1 4 7;2 5 8;3 6 9];
 barh(x,y,0.2,'green');
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index d6af094..be593b3 100644 (file)
@@ -65,7 +65,7 @@ barhomogenize([h[,'style'[,'width']]])</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 // First example: creation of 1 yellow bar (i.e 1 polyline with polyline_style=6) and 3 bars (i.e 3 polylines with polyline_style=6) 
 subplot(2,3,1)
 xtitle('ex1: creation of 1 yellow bar and 3 bars ')
@@ -111,7 +111,7 @@ barhomogenize();
 // change the style and the width
 //barhomogenize('stacked',0.5);
 //barhomogenize('stacked',1);
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index c65451d..fda87a8 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 f = scf();
 plot3d1();
 f.color_map = bonecolormap(32);
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 73fa601..9eb818f 100644 (file)
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 t=0:0.1:2*%pi;
 a=gca();a.data_bounds=[t(1) -1.8;t($) 1.8];
 a.margins(4)=0.2;
@@ -175,7 +174,7 @@ hl=captions(e.children,['cos(t)';'cos(2*t)';'cos(3*t)'],'in_upper_right');
 
 hl.legend_location='in_upper_right'
 hl.fill_mode='on';
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 6a7adbe..d4f278f 100644 (file)
@@ -92,15 +92,13 @@ champ(x,y,fx,fy,&lt;opt_args&gt;)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 // using rect as plot boundaries 
 champ(-5:5,-5:5,rand(11,11),rand(11,11),rect=[-10,-10,10,10],arfact=2)
 // using (x,y) to get boundaries 
 clf()
 champ(-5:5,-5:5,rand(11,11),rand(11,11),2,[-10,-10,10,10],"021")
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index ce982b4..883b665 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 champ1(-5:5,-5:5,rand(11,11),rand(11,11),rect=[-10,-10,10,10],arfact=2)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 5d69f0d..db5d454 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
+a=get("current_axes");//get the handle of the newly created axes
+a.data_bounds=[-10,-10;10,10];
+champ(-5:5,-5:5,rand(11,11),rand(11,11))
 
-   a=get("current_axes");//get the handle of the newly created axes
-   a.data_bounds=[-10,-10;10,10];
-   champ(-5:5,-5:5,rand(11,11),rand(11,11))
+c=a.children
 
-   c=a.children
-
-   c.colored="on";
-   c.thickness=2;
-   c.data // display the tlist of type "scichampdata"
-   a.data_bounds=[-5,-5;5,5];
-
-  ]]></programlisting>
+c.colored="on";
+c.thickness=2;
+c.data // display the tlist of type "scichampdata"
+a.data_bounds=[-5,-5;5,5];
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index c7fced5..6c47ebc 100644 (file)
@@ -75,25 +75,24 @@ clf(num,&lt;opt_job_arg&gt;)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-   f4=scf(4);  //creates figure with id==4 and make it the current one
-   f4.color_map = jetcolormap(64);
-   f4.figure_size = [400, 200];
-   plot2d()
-   clf(f4,'reset')
+    <programlisting role="example"><![CDATA[ 
+f4=scf(4);  //creates figure with id==4 and make it the current one
+f4.color_map = jetcolormap(64);
+f4.figure_size = [400, 200];
+plot2d()
+clf(f4,'reset')
    
-   f0=scf(0); //creates figure with id==0 and make it the current one
-   f0.color_map=hotcolormap(128); // change color map
-   t=-%pi:0.3:%pi;
-   plot3d1(t,t,sin(t)'*cos(t));
+f0=scf(0); //creates figure with id==0 and make it the current one
+f0.color_map=hotcolormap(128); // change color map
+t=-%pi:0.3:%pi;
+plot3d1(t,t,sin(t)'*cos(t));
 
-   clf() // equivalent to clf(gcf(),'clear')
-   plot3d1(t,t,sin(t)'*cos(t));  // color_map unchanged
+clf() // equivalent to clf(gcf(),'clear')
+plot3d1(t,t,sin(t)'*cos(t));  // color_map unchanged
    
-   clf(gcf(),'reset')
-   plot3d1(t,t,sin(t)'*cos(t));  // color_map changed (back to the default one with 32 colors)
-
-  ]]></programlisting>
+clf(gcf(),'reset')
+plot3d1(t,t,sin(t)'*cos(t));  // color_map changed (back to the default one with 32 colors)
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 407ce1a..dc756f2 100644 (file)
@@ -66,8 +66,7 @@ id=color(r,g,b)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 x=linspace(-2*%pi,2*%pi,100)';
 // using existing colors
 plot2d(x,[sin(x),cos(x)],style=[color("red"),color("green")]);
@@ -76,8 +75,7 @@ e=gce(); p1=e.children(1); p2=e.children(2);
 p1.foreground=color("purple"); p2.foreground=color("navy blue");
 // using RGV values
 p1.foreground=color(255,128,128);
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 91941d8..4d86b60 100644 (file)
@@ -68,7 +68,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 // example 1
 x = linspace(0,1,81);
 z = cos(2*%pi*x)'*sin(2*%pi*x);
@@ -107,7 +107,6 @@ subplot(2,2,4)
    xtitle("a Sgrayplot with a colorbar")
 drawnow() ;
 
-
 // example 3
 x = linspace(0,1,81);
 zz = abs(0.5*cos(2*%pi*x)'*cos(2*%pi*x));
index adb6ddc..678dcc5 100644 (file)
@@ -79,9 +79,8 @@ colordef('new',color_scheme)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-   // Add here scilab instructions and comments
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 0059cb7..9e3502f 100644 (file)
@@ -41,8 +41,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 n=64;
 r=linspace(0,1,n)';
 g=linspace(1,0,n)';
@@ -51,8 +50,7 @@ cmap=[r g b];
 f=gcf(); f.color_map=cmap;
 plot3d1()
 f.color_map=get(sdf(),"color_map");
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index ce834f3..a8cd51c 100644 (file)
@@ -49,21 +49,17 @@ contour(x,y,z,nz,&lt;opt_args&gt;)</synopsis>
               <listitem>
                 <para>If <literal>nz</literal> is an integer, its value gives the number of
   level curves  equally spaced from zmin to zmax as follows:</para>
-                <programlisting><![CDATA[
-
- z= zmin + (1:nz)*(zmax-zmin)/(nz+1)
-   
-                ]]></programlisting>
+                <programlisting role = ""><![CDATA[ 
+z= zmin + (1:nz)*(zmax-zmin)/(nz+1)
+ ]]></programlisting>
                 <para> Note that the <literal>zmin</literal> and
                 <literal>zmax</literal> levels are not drawn  (generically
                 they are reduced to points) but they can be added
                 with</para>
-                <programlisting><![CDATA[
-
- [im,jm] = find(z == zmin);     // or zmax 
- plot2d(x(im)',y(jm)',-9,"000")
-   
-                ]]></programlisting>
+                <programlisting role = ""><![CDATA[ 
+[im,jm] = find(z == zmin);     // or zmax 
+plot2d(x(im)',y(jm)',-9,"000")
+ ]]></programlisting>
               </listitem>
             </varlistentry>
             <varlistentry>
@@ -295,8 +291,7 @@ contour(x,y,z,nz,&lt;opt_args&gt;)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 t=linspace(-%pi,%pi,30);
 function z=my_surface(x,y),z=x*sin(x)^2*cos(y),endfunction
 
@@ -309,10 +304,7 @@ contour(t,t,my_surface,10)
 xbasc()
 z=feval(t,t,my_surface);
 plot3d(t,t,z);contour(t,t,z+0.2*abs(z),20,flag=[0 2 4]);
-//
-
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 6569f9b..285a68b 100644 (file)
@@ -51,12 +51,16 @@ contour2d(x,y,z,nz,&lt;opt_args&gt;)</synopsis>
                 <para>If <literal>nz</literal> is an integer, its value gives the
                 number of level curves equally spaced from zmin to zmax as
                 follows:</para>
-                <programlisting><![CDATA[z= zmin + (1:nz)*(zmax-zmin)/(nz+1)]]></programlisting>
+                <programlisting role = ""><![CDATA[ 
+z= zmin + (1:nz)*(zmax-zmin)/(nz+1) 
+ ]]></programlisting>
                 <para>Note that the <literal>zmin</literal> and <literal>zmax</literal>
                 levels are not drawn (generically they are reduced to points)
                 but they can be added with</para>
-                <programlisting><![CDATA[[im,jm] = find(z == zmin); // or zmax
-plot2d(x(im)',y(jm)',-9,"000")]]></programlisting>
+                <programlisting role = ""><![CDATA[ 
+[im,jm] = find(z == zmin); // or zmax
+plot2d(x(im)',y(jm)',-9,"000")
+ ]]></programlisting>
               </listitem>
             </varlistentry>
             <varlistentry>
@@ -111,7 +115,7 @@ plot2d(x(im)',y(jm)',-9,"000")]]></programlisting>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 contour2d(1:10,1:10,rand(10,10),5,rect=[0,0,11,11])
 // changing the format of the printing of the levels
 xset("fpf","%.2f")
@@ -134,7 +138,7 @@ contour2d(x,x,z,-0.75:0.25:0.75,frameflag=3,rect=[0,0,5*%pi,4*%pi])
 //          will not work as soon as one of the level is formed by 2 curves)  
 legends(string(-0.75:0.25:0.75),1:7,"lr");
 xtitle("Some level curves of the function cos(x)cos(y)")
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 5acb471..37009e0 100644 (file)
               <listitem>
                 <para>If <literal>nz</literal> is an integer, its value gives the number of
   level curves  equally spaced from zmin to zmax as follows:</para>
-                <programlisting><![CDATA[
-
- z= zmin + (1:nz)*(zmax-zmin)/(nz+1)
-   
-                ]]></programlisting>
+                <programlisting role = ""><![CDATA[ 
+z= zmin + (1:nz)*(zmax-zmin)/(nz+1)
+ ]]></programlisting>
                 <para>
     Note that the <literal>zmin</literal> and <literal>zmax</literal> levels are not drawn  (generically they are reduced to points) but they can be added  with 
   </para>
-                <programlisting><![CDATA[
-
- [im,jm] = find(z == zmin);     // or zmax 
- plot2d(x(im)',y(jm)',-9,"000")
-   
-                ]]></programlisting>
+                <programlisting role = ""><![CDATA[ 
+[im,jm] = find(z == zmin);     // or zmax 
+plot2d(x(im)',y(jm)',-9,"000")
+ ]]></programlisting>
               </listitem>
             </varlistentry>
             <varlistentry>
@@ -93,8 +89,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 [xc,yc]=contour2di(1:10,1:10,rand(10,10),5);
 k=1;n=yc(k);c=1;
 while k+yc(k)<size(xc,'*')
@@ -103,9 +98,7 @@ while k+yc(k)<size(xc,'*')
   c=c+1;
   k=k+n+1;
 end
-
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index da8c4c7..a909b6e 100644 (file)
                 the number of level curves equally spaced from zmin to zmax as
                 follows:</para>
 
-                <programlisting>
-
- z= zmin + (1:nz)*(zmax-zmin)/(nz+1)
-   
-                </programlisting>
+                <programlisting role = ""><![CDATA[ 
+z= zmin + (1:nz)*(zmax-zmin)/(nz+1)
+ ]]></programlisting>
 
                 <para>Note: that the <literal>zmin</literal> and
                 <literal>zmax</literal> levels are not drawn (generically they
                 are reduced to points) but they can be added with</para>
 
-                <programlisting>
-
- [im,jm] = find(z == zmin);     // or zmax 
- plot2d(x(im)',y(jm)',-9,"000")
-   
-                </programlisting>
+                <programlisting role = ""><![CDATA[ 
+[im,jm] = find(z == zmin);     // or zmax 
+plot2d(x(im)',y(jm)',-9,"000")
+ ]]></programlisting>
               </listitem>
             </varlistentry>
 
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 contourf(1:10,1:10,rand(10,10),5,1:5,"011"," ",[0,0,11,11])
 
 function z=peaks(x,y)
@@ -170,9 +165,7 @@ contourf([],[],z,[-6:-1,-logspace(-5,0,10),logspace(-5,0,10),1:8],0*ones(1,m))
 xset('fpf','');
 xbasc();
 contourf([],[],z,[-6:-1,-logspace(-5,0,10),logspace(-5,0,10),1:8]);
-
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -198,4 +191,4 @@ contourf([],[],z,[-6:-1,-logspace(-5,0,10),logspace(-5,0,10),1:8]);
 
     <para>J.Ph.C.</para>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index 85915d3..4c01d14 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 f = scf();
 plot3d1();
 f.color_map = coolcolormap(32);
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 92770da..b8379b5 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 f = scf();
 plot3d1();
 f.color_map = coppercolormap(32);
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 74507bd..83cd30d 100644 (file)
@@ -61,8 +61,7 @@ h_copy=copy(h)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 subplot(211);a1=gca();
 plot2d()
 e=gce();
@@ -71,9 +70,7 @@ p2=copy(p1);p2.data(:,2)=p2.data(:,2)-0.5;
 subplot(212);a2=gca();
 a2.data_bounds=a1.data_bounds;
 copy(p1,a2);
-
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 35a72e3..b082dfc 100644 (file)
@@ -59,24 +59,20 @@ delete("all")</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
-
-  subplot(211);
-  t=1:10;plot2d(t,t.^2),
-  subplot(223);
-  plot3d();
-  subplot(224);
-  plot2d();
-  xfrect(1,0,3,1);
-  a=get("current_axes") 
-  delete(); //delete the graphics object newly created
-  delete(a.children); //delete all children of the current axes
-  delete(a); //delete the axes
-  delete("all"); //delete all the graphics objects of the figure
-
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+subplot(211);
+t=1:10;plot2d(t,t.^2),
+subplot(223);
+plot3d();
+subplot(224);
+plot2d();
+xfrect(1,0,3,1);
+a=get("current_axes") 
+delete(); //delete the graphics object newly created
+delete(a.children); //delete all children of the current axes
+delete(a); //delete the axes
+delete("all"); //delete all the graphics objects of the figure
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index d0a9ca6..c553cf1 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 xsetech(frect=[0,0,100,100])
 r=dragrect([10;10;30;10])
 xrect(r)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 8942cb6..1f71f77 100644 (file)
@@ -47,32 +47,26 @@ draw(h)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[   subplot(212)
-   a=gca();
-    plot2d
-   drawlater
+    <programlisting role="example"><![CDATA[ 
+subplot(212)
+a=gca();
+plot2d
+drawlater
 
-    subplot(211)
-    plot2d1 // default drawing mode
+subplot(211)
+plot2d1 // default drawing mode
 
-    e=gce();
-    draw(e.children(2)) // draw a single polyline of the second axes
+e=gce();
+draw(e.children(2)) // draw a single polyline of the second axes
 
-    e.children(1).visible='off'; // We can choose to make a line invisible
+e.children(1).visible='off'; // We can choose to make a line invisible
 
-    draw(e) // draw Compound and its children <=> draw all the visible polylines
-    
-    
-  
+draw(e) // draw Compound and its children <=> draw all the visible polylines
 
-    drawnow // ...now!
+drawnow // ...now!
 
-    e.children(1).visible='on';
-
-
-
-  ]]></programlisting>
+e.children(1).visible='on';
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index cc1f159..27e9dec 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 plot2d(1:10,1:10,1,"020")
 // horizontal axis 
 drawaxis(x=2:7,y=4,dir='u',tics='v')
@@ -151,8 +150,7 @@ drawaxis(x=9,y=[2,5,0,3],dir='r',tics='i',sub_int=5);
 
 // horizontal axis again 
 drawaxis(x=2:7,y=4,dir='u',tics='v',fontsize=10,textcolor=9,ticscolor=7,seg=0,sub_int=20) 
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>Authors</title>
index df36dcc..12f4d0c 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-  //Example :  one axes / one figure
-  drawlater(); 
-  xfarc(.25,.55,.1,.15,0,64*360);
-  xfarc(.55,.55,.1,.15,0,64*360);
-  xfrect(.3,.8,.3,.2); 
-  xfrect(.2,.7,.5,.2);  
-  xfrect(.32,.78,.1,.1);
-  xfrect(.44,.78,.14,.1);
-  xfrect(-.2,.4,1.5,.8);
-  xstring(0.33,.9,"A Scilab Car");    
-  a=get("current_axes");
-  a.children(1).font_size=4;
-  a.children(1).font_style=4;  
-  a.children(1).background=5;
-  a.children(3).background=8;
-  a.children(4).background=8; 
-  a.children(5).background=17;
-  a.children(6).background=17; 
-  a.children(7).background=25;
-  a.children(8).background=25;
-  xclick();drawnow();
+    <programlisting role="example"><![CDATA[ 
+//Example :  one axes / one figure
+drawlater(); 
+xfarc(.25,.55,.1,.15,0,64*360);
+xfarc(.55,.55,.1,.15,0,64*360);
+xfrect(.3,.8,.3,.2); 
+xfrect(.2,.7,.5,.2);  
+xfrect(.32,.78,.1,.1);
+xfrect(.44,.78,.14,.1);
+xfrect(-.2,.4,1.5,.8);
+xstring(0.33,.9,"A Scilab Car");    
+a=get("current_axes");
+a.children(1).font_size=4;
+a.children(1).font_style=4;  
+a.children(1).background=5;
+a.children(3).background=8;
+a.children(4).background=8; 
+a.children(5).background=17;
+a.children(6).background=17; 
+a.children(7).background=25;
+a.children(8).background=25;
+xclick();drawnow();
  
-  //Example 2:: two axes / one figure
+//Example 2:: two axes / one figure
 
-  subplot(212)
-  a=gca();
-  drawlater // what will be present in this axes will be displayed later
-  plot2d // draw these axes and children later...
+subplot(212)
+a=gca();
+drawlater // what will be present in this axes will be displayed later
+plot2d // draw these axes and children later...
 
-  subplot(211) // Warning: we change the axes
-  plot2d1 // default drawing mode
+subplot(211) // Warning: we change the axes
+plot2d1 // default drawing mode
 
-  draw(a) // ...axes only is visible providing you not redraw the window
-  drawnow() // all is visible
-  ]]></programlisting>
+draw(a) // ...axes only is visible providing you not redraw the window
+drawnow() // all is visible
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index cbdeca5..dc7e010 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
-  f=get("current_figure") // handle of the current figure
+    <programlisting role="example"><![CDATA[ 
+f=get("current_figure") // handle of the current figure
   
-  drawlater()
-  subplot(221);
-  t=1:10;plot2d(t,t.^2)
-  subplot(222);
-  x=0:1:7;plot2d(x,cos(x),2) 
-  subplot(234);
-  plot2d(t,cos(t),3);
-  subplot(235);
-  plot2d(x,sin(2*x),5); 
-  subplot(236);
-  plot2d(t,tan(2*t));  
+drawlater()
+subplot(221);
+t=1:10;plot2d(t,t.^2)
+subplot(222);
+x=0:1:7;plot2d(x,cos(x),2) 
+subplot(234);
+plot2d(t,cos(t),3);
+subplot(235);
+plot2d(x,sin(2*x),5); 
+subplot(236);
+plot2d(t,tan(2*t));  
  
-  draw(gca()); //draw the current axes and its children
-  draw(f.children([3 4])); // draw the specified axes and their children
-  drawnow(); // draw the current figure
-
-  ]]></programlisting>
+draw(gca()); //draw the current axes and its children
+draw(f.children([3 4])); // draw the specified axes and their children
+drawnow(); // draw the current figure
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index b9929c5..8e48bb3 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 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))
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 2e03526..d6aa858 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
+x=-5:5;y=x;
+deff('[z]=f(x,y)',['z= x.*y']);
+z=eval3d(f,x,y);
+plot3d(x,y,z);
 
-  x=-5:5;y=x;
-  deff('[z]=f(x,y)',['z= x.*y']);
-  z=eval3d(f,x,y);
-  plot3d(x,y,z);
-// 
-  deff('[z]=f(x,y)',['z= x*y']);
-  z=feval(x,y,f);
-  plot3d(x,y,z);
-  ]]></programlisting>
+deff('[z]=f(x,y)',['z= x*y']);
+z=feval(x,y,f);
+plot3d(x,y,z);
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 2c57e94..dacb76c 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 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)"])
+                           "y=p1.*cos(p1).*cos(p2)";..
+                           "z=p1.*sin(p2)"])
 [Xf,Yf,Zf]=eval3dp(scp,p1,p2);
 plot3d(Xf,Yf,Zf)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index d0fe96c..226febe 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
+function my_eventhandler(win,x,y,ibut)
+  if ibut==-1000 then return,end
+  [x,y]=xchange(x,y,'i2f')
+  xinfo(msprintf('Event code %d at mouse position is (%f,%f)',ibut,x,y))
+endfunction
 
-   function my_eventhandler(win,x,y,ibut)
-      if ibut==-1000 then return,end
-      [x,y]=xchange(x,y,'i2f')
-       xinfo(msprintf('Event code %d at mouse position is (%f,%f)',ibut,x,y))
-   endfunction
-   plot2d()
-   fig = gcf() ;
-   fig.event_handler = 'my_eventhandler' ;
-   fig.event_handler_enable = "on" ;
-   //now:
-   //   -  move the mouse over the graphic window
-   //   -  press and release keys shifted or not with Ctrl pressed or not
-   //   -  press button, wait a little release
-   //   -  press and release button
-   //   -  double-click button
+plot2d()
+fig = gcf() ;
+fig.event_handler = 'my_eventhandler' ;
+fig.event_handler_enable = "on" ;
+//now:
+//   -  move the mouse over the graphic window
+//   -  press and release keys shifted or not with Ctrl pressed or not
+//   -  press button, wait a little release
+//   -  press and release button
+//   -  double-click button
 
-
-   fig.event_handler_enable = "off" ; //suppress the event handler
-  ]]></programlisting>
+fig.event_handler_enable = "off" ; //suppress the event handler
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index c124975..154efd4 100644 (file)
@@ -97,8 +97,7 @@ fchamp(f,t,xr,yr,&lt;opt_args&gt;)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 deff("[xdot] = derpol(t,x)",..
         ["xd1 = x(2)";..
          "xd2 = -x(1) + (1 - x(1)**2)*x(2)";..
@@ -108,8 +107,7 @@ yf= -1:0.1:1;
 fchamp(derpol,0,xf,yf)
 clf()
 fchamp(derpol,0,xf,yf,1,[-2,-2,2,2],"011")
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index e30371e..31e0860 100644 (file)
@@ -150,7 +150,7 @@ fec(x,y,triangles,func,[strf,leg,rect,nax,zminmax,colminmax,colout,mesh])</synop
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 // define a mini triangulation (4 vertices, 2 triangles)
 x = [0 1 0 -1];
 y = [0 0 1  1];
@@ -160,16 +160,15 @@ z = [0 1 0 -1];  // values of the func at each vertices
 xbasc()
 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)")
+  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)")
+  colorbar(-1,1)
+  fec(x,y,T,z,strf="040")  // rmq: mesh=%f by default
+  xtitle("fec example (without the mesh)")
 xselect()
 
-
 // this example shows the effect of zminmax and uses the
 // previous example datas (you have to execute the it before)
 xbasc()
@@ -179,45 +178,43 @@ fec(x,y,T,z,strf="040", zminmax=[-0.5 0.5], mesh=%t)
 xtitle("fec example : using zminmax argument")
 xselect()
 
-
 // this example shows the effect of zminmax and colout. It uses
 // also the datas of the first example (you have to execute the it before)
 xbasc()
 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]")
+  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]")
+  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]")
+  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]")
+  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]")
 xselect()
 
-
 // this example shows a feature from colminmax:
 // playing with 2 colormaps for 2 subplots. It
 // uses also the data of the first example.
 xbasc()
 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")
+  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")
+  colorbar(-1,1,[65 128])
+  fec(x,y,T,z,strf="040", colminmax=[65 128], mesh=%t)
+  xtitle("fec using the jet colormap")
 xselect()
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index b97f514..e2eec87 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
-   x=-10:10; y=-10:10;m =rand(21,21);
-   Sgrayplot(x,y,m);
-   a=get("current_axes");
-   f=a.children.children(1)
-   f.data(:,3)=(1:size(f.data,1))';
-   a.parent.color_map=hotcolormap(64);
-
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+x=-10:10; y=-10:10;m =rand(21,21);
+Sgrayplot(x,y,m);
+a=get("current_axes");
+f=a.children.children(1)
+f.data(:,3)=(1:size(f.data,1))';
+a.parent.color_map=hotcolormap(64);
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 8867af4..4818920 100644 (file)
@@ -63,13 +63,11 @@ fgrayplot(x,y,f,&lt;opt_args&gt;)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 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>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 14a4f74..a339d00 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-   lines(0) // disables vertical paging 
-  //Example 1
-   f=get("current_figure") //get the handle of the current figure : 
-                                           //if none exists, create a figure and return the corresponding handle
-   f.figure_position
-   f.figure_size=[200,200]
-   f.background=2
-   f.children  // man can see that an Axes entity already exists
-   delete(f);
-   f=gcf(); // macro shortcut <=> f=get("current_figure")
-   f.pixmap = "on" // set pixmap status to on
-   plot2d() // nothing happens on the screen...
-   show_pixmap() // ...display the pixmap on screen
-   //Example 2 : default_figure settings
-   df=get("default_figure") // get the default values (shortcut is gdf() )
-   // Let's change the defaults...
-   df.color_map=hotcolormap(128)
-   df.background= 110 // set background toa kind of yellow (Note that we are using a color index inside the color_map previously redefined)
-   scf(122); // creates new figure number 122 with the new default
-   plot2d()
-   scf(214);
-   t=-%pi:0.3:%pi;
-   plot3d(t,t,sin(t)'*cos(t),35,45,'X@Y@Z',[15,2,4]);
-     ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+lines(0) // disables vertical paging 
+
+//Example 1
+f=get("current_figure") //get the handle of the current figure : 
+                        //if none exists, create a figure and return the corresponding handle
+f.figure_position
+f.figure_size=[200,200]
+f.background=2
+f.children  // man can see that an Axes entity already exists
+delete(f);
+f=gcf(); // macro shortcut <=> f=get("current_figure")
+f.pixmap = "on" // set pixmap status to on
+plot2d() // nothing happens on the screen...
+show_pixmap() // ...display the pixmap on screen
+
+//Example 2 : default_figure settings
+df=get("default_figure") // get the default values (shortcut is gdf() )
+// Let's change the defaults...
+df.color_map=hotcolormap(128)
+df.background= 110 // set background toa kind of yellow (Note that we are using a color index inside the color_map previously redefined)
+scf(122); // creates new figure number 122 with the new default
+plot2d()
+scf(214);
+t=-%pi:0.3:%pi;
+plot3d(t,t,sin(t)'*cos(t),35,45,'X@Y@Z',[15,2,4]);
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 6631287..fad9cb3 100644 (file)
@@ -64,15 +64,13 @@ fplot2d(xr,f,&lt;opt_args&gt;)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 deff("[y]=f(x)","y=sin(x)+cos(x)")
 x=[0:0.1:10]*%pi/10;
 fplot2d(x,f)
 clf();
 fplot2d(1:10,'parab')
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index d6080d0..324dd33 100644 (file)
@@ -68,13 +68,11 @@ fplot3d(xr,yr,f,&lt;opt_args&gt;)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 deff('z=f(x,y)','z=x^4-y^4')
 x=-3:0.2:3 ;y=x ;
 clf() ;fplot3d(x,y,f,alpha=5,theta=31)  
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 0d107d4..1413095 100644 (file)
@@ -68,13 +68,11 @@ fplot3d1(xr,yr,f,&lt;opt_args&gt;)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 deff('z=f(x,y)','z=x^4-y^4')
 x=-3:0.2:3 ;y=x ;
 clf() ;fplot3d1(x,y,f,alpha=5,theta=31)  
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index bb2b19f..34bcea9 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-   
-    subplot(211)
-    a=gca() //get the current axes
-    a.box="off";
-    t=-%pi:0.3:%pi;plot3d(t,t,sin(t)'*cos(t),80,50,'X@Y@Z',[5,2,4]);
-    subplot(212)
-    plot2d(); //simple plot
-    a=gca() //get the current axes
-    a.box="off";
-    a.x_location="middle";
-    a.parent.background=4;
-    delete(gca()) // delete the current axes    
-    xdel(0) //delete a graphics window 
-
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+subplot(211)
+a=gca() //get the current axes
+a.box="off";
+t=-%pi:0.3:%pi;plot3d(t,t,sin(t)'*cos(t),80,50,'X@Y@Z',[5,2,4]);
+subplot(212)
+plot2d(); //simple plot
+a=gca() //get the current axes
+a.box="off";
+a.x_location="middle";
+a.parent.background=4;
+delete(gca()) // delete the current axes    
+xdel(0) //delete a graphics window 
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index fc94e6d..d007dac 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-   
-    a=gca() //get the handle of the newly created axes
-    a.data_bounds=[1,1;10,10];
-    a.axes_visible = 'on' ;
-    for i=1:5
-      xfrect(7-i,9-i,3,3);
-      e=gce();
-      e.background=i;
-     end
-    delete(); // delete current entity
-    delete(gce()); // delete current entity
-    delete(gcf()); // delete current figure
-     
-
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+a=gca() //get the handle of the newly created axes
+a.data_bounds=[1,1;10,10];
+a.axes_visible = 'on' ;
+for i=1:5
+  xfrect(7-i,9-i,3,3);
+  e=gce();
+  e.background=i;
+end
+delete(); // delete current entity
+delete(gce()); // delete current entity
+delete(gcf()); // delete current figure
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 660844c..037af74 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-    
-    f=gcf(); // Create a figure
-    f.figure_size= [610,469]/2;
-    f.figure_name= "Foo";
+    <programlisting role="example"><![CDATA[ 
+f=gcf(); // Create a figure
+f.figure_size= [610,469]/2;
+f.figure_name= "Foo";
 
-    f=figure(); // Create a figure
-    h=uicontrol(f,"style","listbox","position", [10 10 150 160]); // Create a listbox
-    set(h, "string", "item 1|item 2|item3");// fill the list
-    set(h, "value", [1 3]); // select item 1 and 3 in the list
-    gcf()
+f=figure(); // Create a figure
+h=uicontrol(f,"style","listbox","position", [10 10 150 160]); // Create a listbox
+set(h, "string", "item 1|item 2|item3");// fill the list
+set(h, "value", [1 3]); // select item 1 and 3 in the list
+gcf()
 
-    scf(0); // Make graphic window 0 the current figure
-    gcf()  // Return the graphic handle of the current figure
+scf(0); // Make graphic window 0 the current figure
+gcf()  // Return the graphic handle of the current figure
 
-    figure(f) // Make window f the current figure
-    gcf() // Return the graphic handle of the current figure
-
-  ]]></programlisting>
+figure(f) // Make window f the current figure
+gcf() // Return the graphic handle of the current figure
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index c163c93..2d9def1 100644 (file)
@@ -48,35 +48,32 @@ a = get("default_axes")</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-     
-    a=gda() // get the handle of the model axes 
-    // set its' properties
-    a.box="off";
-    a.foreground=2;
-    a.labels_font_size=3;
-    a.labels_font_color=5;
-    a.sub_tics=[5 5 3];
-    a.x_location="top";
+    <programlisting role="example"><![CDATA[ 
+a=gda() // get the handle of the model axes 
+// set its' properties
+a.box="off";
+a.foreground=2;
+a.labels_font_size=3;
+a.labels_font_color=5;
+a.sub_tics=[5 5 3];
+a.x_location="top";
 
-    //now used the model axes for drawing
-    subplot(211) //create an axes entity
-    plot2d() 
-
-   // set other model's properties
-    a.background=color('gray')
-    a.grid=[5 5 5];
-    subplot(212)
-    t=0:0.1:5*%pi; 
-    plot2d(sin(t),cos(t)) 
+//now used the model axes for drawing
+subplot(211) //create an axes entity
+plot2d() 
 
+// set other model's properties
+a.background=color('gray')
+a.grid=[5 5 5];
+subplot(212)
+t=0:0.1:5*%pi; 
+plot2d(sin(t),cos(t)) 
  
-    set(a,"default_values",1); // return to the  default values of the model
-                               // see sda() function
-    clf()
-    plot2d(sin(t),cos(t))
-
-  ]]></programlisting>
+set(a,"default_values",1); // return to the  default values of the model
+                           // see sda() function
+clf()
+plot2d(sin(t),cos(t))
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index ba5d5de..1669c98 100644 (file)
@@ -48,25 +48,23 @@ f = get("default_figure")</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-   
-   f=gdf() // get the handle of the model figure 
-   // setting its' properties
-   f.background=7;
-   f.figure_name="Function gdf()";
-   f.figure_position=[-1 100];
-   f.auto_resize="off";
-   f.figure_size=[300 461];
-   f.axes_size=[600 400];
-   plot2d() //create a figure
-   scf(1);
-   plot3d() //create a second figure
-   set(f,"default_values",1); // return to the  default values of figure's model
-                              // see sdf() function
-   scf(2);
-   plot2d() 
-
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+f=gdf() // get the handle of the model figure 
+// setting its' properties
+f.background=7;
+f.figure_name="Function gdf()";
+f.figure_position=[-1 100];
+f.auto_resize="off";
+f.figure_size=[300 461];
+f.axes_size=[600 400];
+plot2d() //create a figure
+scf(1);
+plot3d() //create a second figure
+set(f,"default_values",1); // return to the  default values of figure's model
+                           // see sdf() function
+scf(2);
+plot2d() 
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index fc5dceb..747b51c 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 t=[0:0.3:2*%pi]'; z=sin(t)*cos(t');
 [xx,yy,zz]=genfac3d(t,t,z);
 plot3d(xx,yy,zz)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 59e7e19..e33b55c 100644 (file)
@@ -52,8 +52,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 deff("[z]=surface(x,y)","z=sin(x)*cos(y)")
 t=%pi*(-10:10)/10;
 // 3D plot of the surface
@@ -61,8 +60,7 @@ fplot3d(t,t,surface,35,45,"X@Y@Z")
 // now (t,t,sin(t).*cos(t)) is a curve on the surface
 // which can be drawn using geom3d and xpoly
 [x,y]=geom3d(%pi/2,0,surface(%pi/2,0))
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>Authors</title>
index acbe5ad..b8bd76a 100644 (file)
@@ -118,43 +118,43 @@ val=h.prop</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-  // for graphics entities
-    clf()
+    <programlisting role="example"><![CDATA[ 
+// for graphics entities
+ clf()
     
-    // simple graphics objects  
-    subplot(121);
-    x=[-.2:0.1:2*%pi]';
-    plot2d(x-2,x.^2);
-    subplot(122);
-    xrect(.2,.7,.5,.2);     
-    xrect(.3,.8,.3,.2);
-    xfarc(.25,.55,.1,.15,0,64*360);
-    xfarc(.55,.55,.1,.15,0,64*360);
-    xstring(0.2,.9,"Example <<A CAR>>");
+// simple graphics objects  
+subplot(121);
+x=[-.2:0.1:2*%pi]';
+plot2d(x-2,x.^2);
+subplot(122);
+xrect(.2,.7,.5,.2);     
+xrect(.3,.8,.3,.2);
+xfarc(.25,.55,.1,.15,0,64*360);
+xfarc(.55,.55,.1,.15,0,64*360);
+xstring(0.2,.9,"Example <<A CAR>>");
  
-    h=get("current_entity") //get the newly object created
-    h.font_size=3;
+h=get("current_entity") //get the newly object created
+h.font_size=3;
  
-    f=get("current_figure") //get the current figure 
-    f.figure_size
-    f.figure_size=[700 500];
-    f.children
-    f.children(2).type
-    f.children(2).children
-    f.children(2).children.children.thickness=4; 
+f=get("current_figure") //get the current figure 
+f.figure_size
+f.figure_size=[700 500];
+f.children
+f.children(2).type
+f.children(2).children
+f.children(2).children.children.thickness=4; 
  
-    a=get("current_axes") //get the current axes
-    a.children.type
-    a.children.foreground //get the foreground color of a set of graphics objects
-    a.children.foreground=9;
+a=get("current_axes") //get the current axes
+a.children.type
+a.children.foreground //get the foreground color of a set of graphics objects
+a.children.foreground=9;
 
-  // for  User Interface objects
-   h=uicontrol('string', 'Button'); // Opens a window with a  button.
-   p=get(h,'position'); // get the geometric aspect of the button
-   disp('Button width: ' + string(p(3))); // print the width of the button
-   close(); // close figure
-  ]]></programlisting>
+// for  User Interface objects
+h=uicontrol('string', 'Button'); // Opens a window with a  button.
+p=get(h,'position'); // get the geometric aspect of the button
+disp('Button width: ' + string(p(3))); // print the width of the button
+close(); // close figure
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index a3ce0d5..30a7f50 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-    // create some figures
-    scf(0);
-    scf(5);
-    scf(12);
+    <programlisting role="example"><![CDATA[ 
+// create some figures
+scf(0);
+scf(5);
+scf(12);
 
-    // get handle on the figure with id 5
-    f5 = get_figure_handle(5);
-    // current figure remains the one with id 12
-    gcf()
-    // get a non existing figure
-    f42 = get_figure_handle(42);
-
-  ]]></programlisting>
+// get handle on the figure with id 5
+f5 = get_figure_handle(5);
+// current figure remains the one with id 12
+gcf()
+// get a non existing figure
+f42 = get_figure_handle(42);
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 6bff258..b94ae39 100644 (file)
@@ -94,14 +94,12 @@ fnt=getfont(S=str,font=[fId,fSize])</synopsis>
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 [fId,fSize]=getfont();
 xset("font",fId,fSize)
 plot2d(0,0,rect=[0 0 10 10],axesflag=0)
 xstring(5,5,"string")
-   
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -113,4 +111,4 @@ xstring(5,5,"string")
       <member><link linkend="text_properties">text_properties</link></member>
     </simplelist>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index 56f0112..dcaa4e3 100644 (file)
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
+    <programlisting role="example"><![CDATA[ 
 x=0:0.1:10;
 plot2d(x,sin(x))
 e=gce(); // store the Compound containing the plot
 e.children(1).line_style = getlinestyle();
-
-</programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -88,4 +87,4 @@ e.children(1).line_style = getlinestyle();
       <member><link linkend="segs_properties">segs_properties</link></member>
     </simplelist>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index 13ebbb6..fcf2a89 100644 (file)
@@ -72,7 +72,7 @@
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
+    <programlisting role="example"><![CDATA[ 
 x=0:0.1:10;
 [mark,mrkSize]=getmark();
 plot2d(x,sin(x),style=-mark);
@@ -81,8 +81,7 @@ plot2d(x,sin(x))
 e=gce(); // store the Compound containing the plot
 [mark,mrkSize]=getmark();
 e.children(1).mark_style = mark;
-
-</programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -99,4 +98,4 @@ e.children(1).mark_style = mark;
       <member><link linkend="segs_properties">segs_properties</link></member>
     </simplelist>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index db442cf..46c6c61 100644 (file)
@@ -51,12 +51,8 @@ h_agreg=glue(H)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
-
-
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 3e281de..bae69bf 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
-  y=(0:0.33:145.78)';
-  xbasc();plot2d1('enn',0,y)
-  [ymn,ymx,np]=graduate(mini(y),maxi(y))
-  rect=[1,ymn,prod(size(y)),ymx];
-  xbasc();plot2d1('enn',0,y,1,'011',' ',rect,[10,3,10,np])
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+y=(0:0.33:145.78)';
+xbasc();plot2d1('enn',0,y)
+[ymn,ymx,np]=graduate(mini(y),maxi(y))
+rect=[1,ymn,prod(size(y)),ymx];
+xbasc();plot2d1('enn',0,y,1,'011',' ',rect,[10,3,10,np])
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 592238a..97c8523 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
+//Play this example line per line
 
+scf() //create a figure in entity mode
 
-  //Play this example line per line
+//get the handle on the Figure entity and display its properties
+f=get("current_figure") 
+a=f.children // the handle on the Axes child
+x=(1:10)';  plot2d(x,[x.^2 x.^1.5])
+e=a.children //Compound of 2 polylines
 
-  scf() //create a figure in entity mode
+p1=e.children(1) //the last drawn polyline properties
+p1.foreground=5;  // change the polyline color
+e.children.thickness=5; // change the thickness of the two polylines
 
-  //get the handle on the Figure entity and display its properties
-  f=get("current_figure") 
-  a=f.children // the handle on the Axes child
-  x=(1:10)';  plot2d(x,[x.^2 x.^1.5])
-  e=a.children //Compound of 2 polylines
+delete(e.children(2))
 
-  p1=e.children(1) //the last drawn polyline properties
-  p1.foreground=5;  // change the polyline color
-  e.children.thickness=5; // change the thickness of the two polylines
+move(e.children,[0,30]) //translate the polyline
 
-  delete(e.children(2))
+a.axes_bounds=[0 0 0.5 0.5]; 
 
-  move(e.children,[0,30]) //translate the polyline
+subplot(222) //create a new Axes entity
+plot(1:10);
+a1=f.children(1); //get its handle
+copy(e.children,a1); //copy the polyline of the first plot in the new Axes
+a1.data_bounds=[1 0;10 100]; //change the Axes bounds  
 
-  a.axes_bounds=[0 0 0.5 0.5]; 
-
-  subplot(222) //create a new Axes entity
-  plot(1:10);
-  a1=f.children(1); //get its handle
-  copy(e.children,a1); //copy the polyline of the first plot in the new Axes
-  a1.data_bounds=[1 0;10 100]; //change the Axes bounds  
-
-  set("current_figure",10) //create a new figure with figure_id=10
-  plot3d() //the drawing are sent to figure 10
-  set("current_figure",f) //make the previous figure the current one
-  plot2d(x,x^3)  //the drawing are sent to the initial figure
-
-  ]]></programlisting>
+set("current_figure",10) //create a new figure with figure_id=10
+plot3d() //the drawing are sent to figure 10
+set("current_figure",f) //make the previous figure the current one
+plot2d(x,x^3)  //the drawing are sent to the initial figure
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index a7ede74..06aa2cb 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 f = scf();
 plot3d1();
 f.color_map = graycolormap(32);
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 218fcbd..a73b4db 100644 (file)
@@ -69,15 +69,13 @@ grayplot(x,y,z,&lt;opt_args&gt;)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 x=-10:10; y=-10:10;m =rand(21,21);
 grayplot(x,y,m,rect=[-20,-20,20,20])
 t=-%pi:0.1:%pi; m=sin(t)'*cos(t);
 clf()
 grayplot(t,t,m)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 75e1755..ed0a578 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
+m=5;n=5;
+M=round(32*rand(m,n));
+grayplot(1:m,1:n,M)
 
+a=get("current_axes");
+a.data_bounds=  [-1,-1;7,7]
+h=a.children
 
-   m=5;n=5;
-   M=round(32*rand(m,n));
-   grayplot(1:m,1:n,M)
-
-   a=get("current_axes");
-   a.data_bounds=  [-1,-1;7,7]
-   h=a.children
-
-   h.data_mapping="direct";
+h.data_mapping="direct";
    
-   // A 2D ploting of a matrix using colors 
-   xbasc()
-   a=get("current_axes");
-   a.data_bounds=  [0,0;4,4];
+// A 2D ploting of a matrix using colors 
+xbasc()
+a=get("current_axes");
+a.data_bounds=  [0,0;4,4];
   
-   b=5*ones(11,11); b(2:10,2:10)=4; b(5:7,5:7)=2;
-   Matplot1(b,[1,1,3,3])  ;
+b=5*ones(11,11); b(2:10,2:10)=4; b(5:7,5:7)=2;
+Matplot1(b,[1,1,3,3])  ;
   
-   h=a.children
-   for i=1:7
-    xclick(); // click the mouse to sets Matplot data
-    h.data=h.data+4;
-   end
-   
-
-  ]]></programlisting>
+h=a.children
+for i=1:7
+  xclick(); // click the mouse to sets Matplot data
+  h.data=h.data+4;
+end
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 64e8882..bf54534 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
-
-  rho=1:0.1:4;theta=(0:0.02:1)*2*%pi;
-  z=30+round(theta'*(1+rho^2));
-  f=gcf();
-  f.color_map= hotcolormap(128);
-  clf();graypolarplot(theta,rho,z)
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+rho=1:0.1:4;theta=(0:0.02:1)*2*%pi;
+z=30+round(theta'*(1+rho^2));
+f=gcf();
+f.color_map= hotcolormap(128);
+clf();graypolarplot(theta,rho,z)
+ ]]></programlisting>
   </refsection>
 </refentry>
index fcaf646..5cf2aa8 100644 (file)
@@ -84,7 +84,7 @@ hist3d(list(f,x,y),[theta,alpha,leg,flag,ebox])</synopsis>
   <refsection>
   <title>Examples</title>
 
-  <programlisting role="example"><![CDATA[
+  <programlisting role="example"><![CDATA[ 
 hist3d(10*rand(10,10));
 
 Z = zeros(100,5);
@@ -101,7 +101,8 @@ hist3d(Z);
 A = abs(rand(10,5));
 Z(91:100,:) = A;
 scf();
-hist3d(Z); ]]></programlisting>
+hist3d(Z); 
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -123,4 +124,4 @@ hist3d(Z); ]]></programlisting>
 
     <para>Steer S. &amp; JPhilippe C.</para>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index f798267..9e80471 100644 (file)
@@ -71,12 +71,12 @@ histplot(x, data, &lt;opt_args&gt;)</synopsis>
         (default case) and else, simply equal to <emphasis>Ni</emphasis>. When normalization occurs the
         histogram verifies: 
     </para>
-    <programlisting><![CDATA[
-            x(n+1)
-           /  
-           |   h(x) dx = 1,  when x(1)<=min(data) and max(data) <= x(n+1)) 
-           /
-           x(1)
+    <programlisting role = ""><![CDATA[ 
+ x(n+1)
+/  
+|   h(x) dx = 1,  when x(1)<=min(data) and max(data) <= x(n+1)) 
+/
+x(1)
      
     ]]></programlisting>
     <para>Any <link linkend="plot2d">plot2d</link> (optional) parameter may be provided; for instance to
@@ -88,7 +88,7 @@ histplot(x, data, &lt;opt_args&gt;)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 // example #1: variations around an histogram of a gaussian random sample 
 d=rand(1,10000,'normal');  // the gaussian random sample
 clf();histplot(20,d)
@@ -101,11 +101,11 @@ d = grand(1000,1,"bin", 6, 0.5);
 c = linspace(-0.5,6.5,8);
 xbasc()
 subplot(2,1,1)
-   histplot(c, d, style=2)
-   xtitle("normalized histogram")
+  histplot(c, d, style=2)
+  xtitle("normalized histogram")
 subplot(2,1,2)
-   histplot(c, d, normalization=%f, style=5)
-   xtitle("non normalized histogram")
+  histplot(c, d, normalization=%f, style=5)
+  xtitle("non normalized histogram")
 
 // example #3: histogram of an exponential random sample 
 lambda = 2;
@@ -116,8 +116,7 @@ histplot(40, X, style=2)
 x = linspace(0,max(Xmax),100)';
 plot2d(x,lambda*exp(-lambda*x),strf="000",style=5)
 legend(["exponential random sample histogram" "exact density curve"]);
-
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 112bb41..6df2ed4 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 f = scf();
 plot3d1();
 f.color_map = hotcolormap(32);
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 685f8db..8cfd6bb 100644 (file)
@@ -99,23 +99,23 @@ rgb = hsv2rgb(hsv)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-    t=[0:0.3:2*%pi]'; z=sin(t)*cos(t'); 
-    plot3d1(t,t,z) 
-    f=gcf();f.pixmap='on';
-    for h=0:0.1:1
-      hsv=[h*ones(32,1) linspace(0,1,32)' 0.7*ones(32,1)];
-      f.color_map=hsv2rgb(hsv);
-      show_pixmap()
-      xpause(10000)
-    end
-    for v=0:0.1:1
-      hsv=[ones(32,1) linspace(0,1,32)' v*ones(32,1)];
-      f.color_map=hsv2rgb(hsv);
-      show_pixmap()
-      xpause(10000)
-    end
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+t=[0:0.3:2*%pi]'; z=sin(t)*cos(t'); 
+plot3d1(t,t,z) 
+f=gcf();f.pixmap='on';
+for h=0:0.1:1
+  hsv=[h*ones(32,1) linspace(0,1,32)' 0.7*ones(32,1)];
+  f.color_map=hsv2rgb(hsv);
+  show_pixmap()
+  xpause(10000)
+end
+for v=0:0.1:1
+  hsv=[ones(32,1) linspace(0,1,32)' v*ones(32,1)];
+  f.color_map=hsv2rgb(hsv);
+  show_pixmap()
+  xpause(10000)
+end
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>Authors</title>
index 2168c4b..8709a6b 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-    t=[0:0.1:2*%pi]'; z=sin(t)*cos(t'); 
-    f=gcf();f.color_map=hsvcolormap(64);
-     plot3d1(t,t,z,35,45,"X@Y@Z",[-2,2,2])
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+t=[0:0.1:2*%pi]'; z=sin(t)*cos(t'); 
+f=gcf();f.color_map=hsvcolormap(64);
+plot3d1(t,t,z,35,45,"X@Y@Z",[-2,2,2])
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>Authors</title>
index a02cedd..b180413 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-    // check that current objects are valid
-    is_handle_valid([gcf(), gca(), gce()])
+    <programlisting role="example"><![CDATA[ 
+// check that current objects are valid
+is_handle_valid([gcf(), gca(), gce()])
 
-    // create 11 polylines
-    plot([0:10; 0:10; 0:10], [0:10; 0:0.5:5; 0:2:20]);
+// create 11 polylines
+plot([0:10; 0:10; 0:10], [0:10; 0:0.5:5; 0:2:20]);
     
-    // check polylines validity
-    axes = gca();
-    polylines = axes.children(1).children
-    is_handle_valid(polylines)
+// check polylines validity
+axes = gca();
+polylines = axes.children(1).children
+is_handle_valid(polylines)
     
-    // delete some polylines
-    delete(polylines(3:7));
-    // print validity
-    is_handle_valid(polylines)
-    
-  ]]></programlisting>
+// delete some polylines
+delete(polylines(3:7));
+// print validity
+is_handle_valid(polylines)
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index a048371..bdb2e89 100644 (file)
@@ -47,8 +47,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 t=[0:0.1:2*%pi]';
 plot2d(sin(t),cos(t))
 xbasc()
@@ -57,8 +56,7 @@ plot2d(sin(t),cos(t),1,"001")
 xset("default")
 
 plot2d(sin(t),cos(t),frameflag=4)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 0690127..c5ef1a7 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 f = scf();
 plot3d1();
 f.color_map = jetcolormap(32);
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 31de1bf..21eddf7 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[   
+    <programlisting role="example"><![CDATA[ 
+a=get("current_axes");
+a.title
+type(a.title)
+plot3d()
+a.x_label
+a.y_label
+a.z_label
+xtitle("My title","my x axis label", "Volume","Month") 
 
-   a=get("current_axes");
-   a.title
-   type(a.title)
-   plot3d()
-   a.x_label
-   a.y_label
-   a.z_label
-   xtitle("My title","my x axis label", "Volume","Month") 
-
-   t=a.title;
-   t.foreground=9;
-   t.font_size=5;
-   t.font_style=5;
-   t.text="SCILAB";
+t=a.title;
+t.foreground=9;
+t.font_size=5;
+t.font_style=5;
+t.text="SCILAB";
    
-   x_label=a.x_label;
-   x_label.text=" Weight"
-   x_label.font_style= 5;
-   a.y_label.foreground = 12;
+x_label=a.x_label;
+x_label.text=" Weight"
+x_label.font_style= 5;
+a.y_label.foreground = 12;
  ]]></programlisting>
   </refsection>
   <refsection>
index f230dc9..cee1bd8 100644 (file)
@@ -218,8 +218,7 @@ hl=legend([h,] strings [,pos] [,boxed])
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 t=linspace(0,%pi,20);
 a=gca();a.data_bounds=[t(1) -1.8;t($) 1.8];
 
@@ -230,8 +229,7 @@ e.children(2).line_style=4;
 e3=e.children(3);e3.line_mode='on';e3.mark_background=5;
 
 hl=legend(['cos(t)';'cos(2*t)';'cos(3*t)']);
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -248,4 +246,4 @@ hl=legend(['cos(t)';'cos(2*t)';'cos(3*t)']);
       linkend="polyline_properties">polyline_properties</link></member>
     </simplelist>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index 57d3573..748411b 100644 (file)
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
-   
+    <programlisting role="example"><![CDATA[ 
 // x initialisation 
 x=[0:0.1:2*%pi]';
 plot2d(x,[sin(x) sin(2*x) sin(3*x)],..
@@ -338,11 +337,7 @@ l.visible="off"; // invisible
 l.font_size = 2;
 l.font_style = 5;
 l.visible='on';
-
-    
-
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 3feb259..498f1b2 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-  
-
+    <programlisting role="example"><![CDATA[ 
 // Example 1
 t=0:0.1:2*%pi;
 plot2d(t,[cos(t'),cos(2*t'),cos(3*t')],[-1,2 3]);  
@@ -136,7 +134,6 @@ 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="?")
 
-
 // Example 2
 scf() ;
 subplot(221)
@@ -158,10 +155,7 @@ 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 )
-
-
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 5bdcec5..c1db843 100644 (file)
@@ -100,12 +100,12 @@ mesh(&lt;axes_handle&gt;,...)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 [X,Y]=meshgrid(-1:.1:1,-1:.1:1);
 Z=X.^2-Y.^2;
 xtitle('z=x2-y ^2');
 mesh(X,Y,Z);
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index c68e8b7..b2f57e1 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 x=-2:0.1:2; y=x;
 z=eval3d(milk_drop,x,y);
 plot3d(x,y,z)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 43acea8..af0d75a 100644 (file)
@@ -62,7 +62,7 @@ move(h,xy,"alone")</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
  ]]></programlisting>
   </refsection>
   <refsection>
index 0ca7e1e..3378a51 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 rgb=name2rgb("gold")
 rgb2name(rgb)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 030e9a9..6323ee1 100644 (file)
@@ -42,8 +42,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 clf()
 a1=newaxes(); 
 a1.axes_bounds=[0,0,1.0,0.5];
@@ -58,8 +57,7 @@ legend('sinh')
 sca(a1); //make first axes current
 plot(t,asinh(t),'g')
 legend(['acosh','asinh'])
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 9f47cb0..d11b341 100644 (file)
@@ -41,8 +41,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 //A sphere...
 u = linspace(-%pi/2,%pi/2,40);
 v = linspace(0,2*%pi,20);
@@ -51,8 +50,7 @@ y= cos(u)'*sin(v);
 z= sin(u)'*ones(v);
 //plot3d2(x,y,z) is equivalent to...
 [xx,yy,zz]=nf3d(x,y,z); plot3d(xx,yy,zz)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index e750ea7..896ef8d 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 f = scf();
 plot3d1();
 f.color_map = oceancolormap(32);
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 6d956ea..4ee598f 100644 (file)
@@ -55,8 +55,7 @@ oldplot(y)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 x=0:0.1:2*%pi;
 // simple plot
 oldplot(sin(x))
@@ -66,8 +65,7 @@ oldplot(x,sin(x),"sin","time","plot of sinus")
 // plot 2 functions
 xbasc()
 oldplot([sin(x);cos(x)])
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index aa4b43c..356d914 100644 (file)
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 t=0:0.1:5*%pi;
 param3d(sin(t),cos(t),t/10,35,45,"X@Y@Z",[2,3])
 
@@ -269,7 +268,7 @@ e.foreground=color('red');
 
 a=gca(); //the handle on the axes
 a.rotation_angles=[10 70];
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -287,4 +286,4 @@ a.rotation_angles=[10 70];
 
     <para>J.Ph.C.</para>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index 74f2ed1..fe72ea0 100644 (file)
@@ -269,24 +269,25 @@ param3d1(x,y,list(z,colors),[theta,alpha,leg,flag,ebox])</synopsis>
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">xset('window',20) // create a window number 20
+    <programlisting role="example"><![CDATA[ 
+xset('window',20) // create a window number 20
 t=[0:0.1:5*%pi]';
 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
- 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]; //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
- curve2 = h.children(2);
- curve2.foreground = 6;
- curve2.mark_style = 2;
- </programlisting>
+         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
+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]; //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
+curve2 = h.children(2);
+curve2.foreground = 6;
+curve2.mark_style = 2;
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -312,4 +313,4 @@ xdel(20) ;
 
     <para>J.Ph.C.</para>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index df3d1da..e2f93e4 100644 (file)
@@ -70,13 +70,11 @@ paramfplot2d(f,x,theta,flagrect)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 deff('y=f(x,t)','y=t*sin(x)')
 x=linspace(0,2*%pi,50);theta=0:0.05:1;
 paramfplot2d(f,x,theta);
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 76d18f7..a5992b9 100644 (file)
@@ -63,7 +63,7 @@ pie(x[,sp[,txt]])</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 // First example : one input argument  x=[1 2 5]
 scf(0);
 pie([1 2 5]);
@@ -75,7 +75,7 @@ pie([5 9 4 6 3],[0 1 0 1 0]);
 // Third example : three input arguments, 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>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 197177d..3796f43 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 f = scf();
 plot3d1();
 f.color_map = pinkcolormap(32);
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 3426a3e..13a8cda 100644 (file)
@@ -227,7 +227,7 @@ plot(&lt;axes_handle&gt;,...)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 // x initialisation 
 x=[0:0.1:2*%pi]';
 //simple plot
@@ -326,7 +326,6 @@ subplot(224);
 plot(x',[t [8;9;10;12]]');
 clf()
 
-
 //Special case 2
 // Case where only x or y is a square matrix
 //x : matrix (t) and y  : vector ([1 2 3 4])
@@ -347,8 +346,7 @@ clf();
 // ..a macro:
 deff('[y]=toto(x)','y=x.*x')
 plot(1:10,toto)
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 92f56f0..b0edbba 100644 (file)
@@ -523,7 +523,7 @@ plot2d([x],y,&lt;opt_args&gt;)</synopsis>
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
+    <programlisting role="example"><![CDATA[ 
 // x initialisation 
 x=[0:0.1:2*%pi]';
 //simple plot
@@ -539,7 +539,7 @@ plot2d(x,[sin(x) sin(2*x) sin(3*x)],rect=[0,0,6,0.5]);
 //multiple plot with captions and given tics + style
 clf();
 plot2d(x,[sin(x) sin(2*x) sin(3*x)],..
-  [1,2,3],leg="L1@L2@L3",nax=[2,10,2,10],rect=[0,-2,2*%pi,2]);
+       [1,2,3],leg="L1@L2@L3",nax=[2,10,2,10],rect=[0,-2,2*%pi,2]);
 // isoview
 clf();
 plot2d(x,sin(x),1,frameflag= 4);
@@ -575,7 +575,7 @@ leg = a.children(2); // store legend handle into leg
 leg.font_style = 9; 
 leg.line_mode = "on";
 a.isoview='off';
-</programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -605,4 +605,4 @@ a.isoview='off';
 
     <para></para>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index 3799882..47d62a1 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 // multiple plot without giving x
 x=[0:0.1:2*%pi]';
 plot2d1("enn",1,[sin(x) sin(2*x) sin(3*x)])
@@ -135,8 +134,7 @@ plot2d1("onn",x,[sin(x) sin(2*x) sin(3*x)])
 // logarithmic plot
 x=[0.1:0.1:3]'; clf()
 plot2d1("oll",x,[exp(x) exp(x^2) exp(x^3)])
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 5c8239d..236fb4f 100644 (file)
@@ -50,8 +50,7 @@ plot2d2([logflag],x,y,[style,strf,leg,rect,nax])</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 // plots a step function of value i on the segment [i,i+1]
 // the last segment is not drawn
 plot2d2([1:4],[1:4],1,"111","step function",[0,0,5,5])
@@ -66,8 +65,7 @@ e=gce();
 e.children(1).polyline_style=2;
 e.children(2).polyline_style=2;
 e.children(3).polyline_style=2;
-
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index fdd76e3..57a1e25 100644 (file)
@@ -49,8 +49,7 @@ plot2d3(x,y &lt;,opt_args&gt;)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 // compare the following with plot2d1
 x=[0:0.1:2*%pi]';
 plot2d3(x,[sin(x) sin(2*x) sin(3*x)])
@@ -60,7 +59,8 @@ plot2d(x,[sin(x) sin(2*x) sin(3*x)])
 e=gce();
 e.children(1).polyline_style=3;
 e.children(2).polyline_style=3;
-e.children(3).polyline_style=3;]]></programlisting>
+e.children(3).polyline_style=3;
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 30109c2..c45286b 100644 (file)
@@ -49,19 +49,18 @@ plot2d4(x,y &lt;,opt_args&gt;)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 // compare the following with plot2d1
 x=[0:0.1:2*%pi]';
 plot2d4(x,[sin(x) sin(2*x) sin(3*x)])
- // In New graphics only
+// In New graphics only
 clf()
 plot2d(x,[sin(x) sin(2*x) sin(3*x)])
 e=gce();
 e.children(1).polyline_style=4;
 e.children(2).polyline_style=4;
 e.children(3).polyline_style=4;
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 1f9307e..bd8fb4c 100644 (file)
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 //simple plot 
 x=[0:0.1:2*%pi]';
 plot2d(sin(x))
@@ -418,10 +417,10 @@ plot2d(x,[sin(x) sin(2*x) sin(3*x)],rect=[0,0,6,0.5])
 //multiple plot with captions and given tics // old syntax and new syntax
 xbasc()
 plot2d(x,[sin(x) sin(2*x) sin(3*x)],..
-  [1,2,3],"111","L1@L2@L3",[0,-2,2*%pi,2],[2,10,2,10]);
+       [1,2,3],"111","L1@L2@L3",[0,-2,2*%pi,2],[2,10,2,10]);
 xbasc()
 plot2d(x,[sin(x) sin(2*x) sin(3*x)],..
-  [1,2,3],leg="L1@L2@L3",nax=[2,10,2,10],rect=[0,-2,2*%pi,2])
+       [1,2,3],leg="L1@L2@L3",nax=[2,10,2,10],rect=[0,-2,2*%pi,2])
 // isoview
 xbasc()
 plot2d(x,sin(x),1,"041")
@@ -442,8 +441,7 @@ plot2d(x,sin(x),1,"184","sin(x)")
 // axis centered at (0,0)
 xbasc()
 plot2d(x-4,sin(x),1,"185","sin(x)")
-</programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -469,4 +467,4 @@ plot2d(x-4,sin(x),1,"185","sin(x)")
 
     <para>J.Ph.C.</para>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index b35521b..cbdd02f 100644 (file)
@@ -309,7 +309,7 @@ plot3d(xf,yf,list(zf,colors),&lt;opt_args&gt;)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 // simple plot using z=f(x,y) 
 t=[0:0.3:2*%pi]';
 z=sin(t)*cos(t');
@@ -329,8 +329,8 @@ clf()
 plot3d(1:10,1:20,10*rand(10,20),alpha=35,theta=45,flag=[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)"]); 
+     "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();plot3d(xx,yy,zz) 
@@ -379,12 +379,11 @@ c=[1:400,1:400];
 TL.color = [c;c+1;c+2;c+3];
 h.data = TL;
 h.color_flag=3; // interpolated shading mode
-
-]]></programlisting>
+ ]]></programlisting>
 
     <para>We can also use the plot3d function to plot a set of patches (triangular, quadrangular, etc). </para>
 
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
  
 // The plot3d function to draw patches:
 // patch(x,y,[z])
@@ -499,8 +498,7 @@ plot3d(rabxquad,rabyquad,list(rabzquad,rabquadcolor_byface));
 h = gcf();
 h.children(1).background = 1;
 xtitle('A standard rabbit set of patches');
-]]></programlisting>
+ ]]></programlisting>
     <para> The result of the preceding example: </para>
     <para> <imagedata fileref="../images/plot3d_patch.png" /> </para>
   </refsection>
index 4a3796b..7337af2 100644 (file)
@@ -256,7 +256,8 @@ 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) 
+    <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 
@@ -285,8 +286,7 @@ e=gce();
 e.color_flag=1;
 scf(2);
 plot3d1(xx,yy,zz) // the 2 graphics are similar
-
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 3a34672..e585bcd 100644 (file)
@@ -249,21 +249,21 @@ plot3d2(X,Y,Z, &lt;opt_args&gt;)</synopsis>
   </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);
 Y = cos(u)'*sin(v);
 Z = sin(u)'*ones(v);
 plot3d2(X,Y,Z);
- // New Graphic mode only 
- e=gce();
+// New Graphic mode only 
+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);
 e.data=TL;
-e.color_flag=2;  ]]></programlisting>
+e.color_flag=2;
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 61004c1..5aca676 100644 (file)
@@ -225,21 +225,18 @@ plot3d3(X,Y,Z, &lt;opt_args&gt;)</synopsis>
   </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);
 Y = cos(u)'*sin(v);
 Z = sin(u)'*ones(v);
 plot3d3(X,Y,Z);
- // New Graphic mode only  
+// New Graphic mode only  
 e=gce(); // get the current entity
 e.visible='off';
 e.visible='on'; // back to the mesh view
-
-
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index c224804..b3ddfb0 100644 (file)
@@ -270,8 +270,7 @@ plot3d(xf,yf,list(zf,colors),&lt;opt_args&gt;)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 // simple plot using z=f(x,y)
 t=[0:0.3:2*%pi]'; z=sin(t)*cos(t');
 plot3d(t,t,z)
@@ -290,8 +289,8 @@ xbasc()
 plot3d(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)"]);
+     "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));
 xbasc();plot3d(xx,yy,zz)
@@ -303,8 +302,7 @@ cc=(xx+zz+2)*32;cc1=(xx1-orig(1)+zz1/r+2)*32;
 xbasc();plot3d1([xx xx1],[yy yy1],list([zz,zz1],[cc cc1]),70,80)
 
 xbasc();plot3d1([xx xx1],[yy yy1],list([zz,zz1],[cc cc1]),theta=70,alpha=80,flag=[5,6,3])
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index f8adeb5..f2977c8 100644 (file)
@@ -143,8 +143,7 @@ plotframe(rect,&lt;opts_args&gt;)</synopsis>
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 x=[-0.3:0.8:27.3]';
 y=rand(x);
 rect=[min(x),min(y),max(x),max(y)];
@@ -157,11 +156,10 @@ plotframe(rect,tics,[%t,%t],..
 ["My plot with grids and automatic bounds","x","y"],[0,0.5,0.5,0.5])
 plot2d(x,y,4,"000")
 plotframe(rect,flags=[%f,%t],tics=tics,..
-   Captions=["My plot without grids but with automatic bounds ","x","y"],..
-   subwin=[0.5,0.5,0.5,0.5])
+          Captions=["My plot without grids but with automatic bounds ","x","y"],..
+          subwin=[0.5,0.5,0.5,0.5])
 plot2d(x,y,5,"000")
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -175,4 +173,4 @@ plot2d(x,y,5,"000")
       <member><link linkend="xsetech">xsetech</link></member>
     </simplelist>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index 93a23fe..099bcf6 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 s=poly(0,'s');
 n=[1+s   2+3*s+4*s^2        5; 0        1-s             s];
 d=[1+3*s   5-s^3           s+1;1+s     1+s+s^2      3*s-1];
 h=syslin('c',n./d); 
 plzr(h);
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 9ee3bd1..a568110 100644 (file)
@@ -231,14 +231,11 @@ polarplot(theta,rho,&lt;opt_args&gt;)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 t= 0:.01:2*%pi;
 clf();polarplot(sin(7*t),cos(8*t))
 
 clf();polarplot([sin(7*t') sin(6*t')],[cos(8*t') cos(8*t')],[1,2])
-
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
 </refentry>
index 46d95d0..0033b95 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[  
+    <programlisting role="example"><![CDATA[ 
+a=get("current_axes")//get the handle of the newly created axes
+a.data_bounds=[-2,-2;2,2];
 
-   a=get("current_axes")//get the handle of the newly created 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"); //get handle on current entity (here the polyline entity)
-   p.foreground=2;
-   p.thickness=3;
-   p.mark_style=9;
-   d=p.data;d(1,:)=[0 0];p.data=d;
-   a.rotation_angles=[0 45];
+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.foreground=2;
+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;
-
-
+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>
   </refsection>
   <refsection>
index 08440b5..9d19e30 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 f = scf();
 plot3d1();
 f.color_map = rainbowcolormap(32);
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 204e77d..54442af 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-   
-   a=get("current_axes");//get the handle of the newly created axes
-   a.data_bounds=[-2,-2;2,2];
+    <programlisting role="example"><![CDATA[ 
+a=get("current_axes");//get the handle of the newly created axes
+a.data_bounds=[-2,-2;2,2];
 
-   xrect(-1,1,2,2)
+xrect(-1,1,2,2)
 
-   r=get("hdl");//get handle on current entity (here the rectangle entity)
-   r.type
-   r.parent.type
-   r.foreground=13;
-   r.line_style=2;
-   r.fill_mode="on";
-   r.background=color('red');
-   r.clip_box=[-1 1;1 1];
-   r.data(:,[3 4])=[1/2 1/2];
-   r.data(:,[1 2])=[1/2 1/2];
-   r.clip_state="off"
-      
+r=get("hdl");//get handle on current entity (here the rectangle entity)
+r.type
+r.parent.type
+r.foreground=13;
+r.line_style=2;
+r.fill_mode="on";
+r.background=color('red');
+r.clip_box=[-1 1;1 1];
+r.data(:,[3 4])=[1/2 1/2];
+r.data(:,[1 2])=[1/2 1/2];
+r.clip_state="off"
  ]]></programlisting>
   </refsection>
   <refsection>
index e8d5c33..96260c5 100644 (file)
@@ -55,7 +55,8 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[x = 0:10 ;
+    <programlisting role="example"><![CDATA[ 
+x = 0:10 ;
 
 // plot a first polyline
 plot(x,x^2) ;
@@ -71,8 +72,7 @@ poly2bis = copy( poly2 ) ; // make a copy of the polyline
 
 // put both polyline in the same window
 relocate_handle( poly2bis, axes1 ) ;
-
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 3fcfe69..88e35f8 100644 (file)
@@ -57,7 +57,8 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[backupstyle='?'
+    <programlisting role="example"><![CDATA[ 
+backupstyle='?'
 
 // First Example
 x=[0:0.1:2*%pi]';
@@ -70,9 +71,7 @@ plot() // plot demo
 f=gcf();
 replot([-1,-1,10,2],f.children(1)) // specify axes handle's value
 replot([-3,-2,8,4],f.children(2)) 
-
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 8c5cb79..c7b24a2 100644 (file)
@@ -58,15 +58,13 @@ names=rgb2name(rgb)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 rgb2name(255,128,128)
 rgb2name([255 215 0])
 // get color #10 of the current colormap and find its name
 cmap=get(gcf(),"color_map");
 rgb2name(cmap(10,:)*255)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 0c4419a..08fdfd9 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 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
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
 </refentry>
index ea76e90..0bd9f0a 100644 (file)
@@ -51,24 +51,23 @@ rotate_axes(h)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-      clf();
-      // create two axes in the figure
-      subplot(2, 1, 1);
-      plot2d;
-      subplot(2, 1, 2);
-      plot3d;
+    <programlisting role="example"><![CDATA[ 
+clf();
+// create two axes in the figure
+subplot(2, 1, 1);
+plot2d;
+subplot(2, 1, 2);
+plot3d;
 
-      // rotate only the second axes
-      axes2 = gca();
-      rotate_axes(axes2);
+// rotate only the second axes
+axes2 = gca();
+rotate_axes(axes2);
 
-      // rotate the selected one
-      rotate_axes();
-      // or
-      rotate_axes(gcf());
-
-]]></programlisting>
+// rotate the selected one
+rotate_axes();
+// or
+rotate_axes(gcf());
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 5085c52..aa5126e 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 xsetech(frect=[0,0,100,100])
 [x,y]=xclick();r=rubberbox([x;y;30;10])
 xrect(r)
 r=rubberbox()
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 3a5b351..4925f95 100644 (file)
@@ -42,8 +42,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 clf()
 a1=newaxes(); 
 a1.axes_bounds=[0,0,1.0,0.5];
@@ -54,14 +53,12 @@ a2.axes_bounds=[0,0.5,1.0,0.5];
 x=0:0.1:4;
 plot(x,sinh(x))
 
-
 sca(a1); //make first axes current
 plot(t,asinh(t),'g')
 legend(['acosh','asinh'])
 sca(a2); //make secoçnd axes current
 legend('sinh')
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 4fc4499..f59a9b2 100644 (file)
@@ -65,13 +65,13 @@ f = scf(num)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-   f4=scf(4); //creates figure with id==4 and make it the current one
-   f0=scf(0); //creates figure with id==0 and make it the current one
-   plot2d() //draw in current figure (id=0)
-   scf(f4); // set first created figure as current one
-   plot3d() //draw in current figure (id=4)
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+f4=scf(4); //creates figure with id==4 and make it the current one
+f0=scf(0); //creates figure with id==0 and make it the current one
+plot2d() //draw in current figure (id=0)
+scf(f4); // set first created figure as current one
+plot3d() //draw in current figure (id=4)
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index d1aa873..9ac8ff1 100644 (file)
@@ -42,39 +42,36 @@ a = gda(); set(a,"default_values",1)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-   
-  x=[0:0.1:2*%pi]';
-  f=get("default_figure"); // get the handle of the model figure 
-  a=get("default_axes"); // get the handle of the model axes 
-    // setting its' properties
-  f.figure_size=[1200 900];
-  f.figure_position=[0 0]; 
-  a.background=4; 
-  a.box="off";
-  a. tics_color=5;
-  a.labels_font_color=25;
-  a.labels_font_size=4;
-  a.sub_tics=[7 3];
-  a.x_location="middle";
-  a.y_location="middle";
-  a.tight_limits="on";
-  a.thickness=2;
-  a.grid=[-1 24];
-  subplot(221);
-  plot2d(x-2,sin(x))
-  subplot(222);
-  plot2d(x-6,[2*cos(x)+.7 2*cos(x)+.9 cos(2*x) .2+sin(3*x)],[-1,-2,-3 -4])
-  sda() // return to the  default values of the axes' model
-  subplot(223);
-  plot2d(x-2,sin(x))
-  subplot(224);
-  plot2d(x-6,[2*cos(x)+.7 2*cos(x)+.9 cos(2*x) .2+sin(3*x)],[-1,-2,-3 -4])
-  xdel(0)
-  plot2d(x-2,sin(x))
-  
-
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+x=[0:0.1:2*%pi]';
+f=get("default_figure"); // get the handle of the model figure 
+a=get("default_axes");   // get the handle of the model axes 
+                         // setting its' properties
+f.figure_size=[1200 900];
+f.figure_position=[0 0]; 
+a.background=4; 
+a.box="off";
+a. tics_color=5;
+a.labels_font_color=25;
+a.labels_font_size=4;
+a.sub_tics=[7 3];
+a.x_location="middle";
+a.y_location="middle";
+a.tight_limits="on";
+a.thickness=2;
+a.grid=[-1 24];
+subplot(221);
+plot2d(x-2,sin(x))
+subplot(222);
+plot2d(x-6,[2*cos(x)+.7 2*cos(x)+.9 cos(2*x) .2+sin(3*x)],[-1,-2,-3 -4])
+sda() // return to the  default values of the axes' model
+subplot(223);
+plot2d(x-2,sin(x))
+subplot(224);
+plot2d(x-6,[2*cos(x)+.7 2*cos(x)+.9 cos(2*x) .2+sin(3*x)],[-1,-2,-3 -4])
+xdel(0)
+plot2d(x-2,sin(x))
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 45f3360..fd1d94b 100644 (file)
@@ -42,27 +42,25 @@ f = gdf(); set(f,"default_values",1)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-   
-   x=[0:0.1:2*%pi]';
-   f=get("default_figure"); // get the handle of the model figure 
-   a=get("default_axes"); // get the handle of the model axes 
-     // setting its' properties
-   f.background=4;
-   f.auto_resize="off";
-   f.figure_size=[400 300];
-   f.axes_size=[600 400];
-   f.figure_position=[0 -1];
-   a.x_location="top";
-   a.y_location="left";
-   for (i=1:6)
-     xset("window",i) // create a figure with the identifier i
-     plot2d(x,[sin(x) cos(x)],[i -i])
-     xclick();
-     if i == 4, sdf(); end // return to the  default values of the figure's model
-    end
-    
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+x=[0:0.1:2*%pi]';
+f=get("default_figure"); // get the handle of the model figure 
+a=get("default_axes");   // get the handle of the model axes 
+                         // setting its' properties
+f.background=4;
+f.auto_resize="off";
+f.figure_size=[400 300];
+f.axes_size=[600 400];
+f.figure_position=[0 -1];
+a.x_location="top";
+a.y_location="left";
+for (i=1:6)
+  xset("window",i) // create a figure with the identifier i
+  plot2d(x,[sin(x) cos(x)],[i -i])
+  xclick();
+  if i == 4, sdf(); end // return to the  default values of the figure's model
+end
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 5fbd093..5a62af1 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
+a=get("current_axes");//get the handle of the newly created axes
+a.data_bounds=[-10,-10;10,10];
+x=2*%pi*(0:7)/8;
+xv=[2*sin(x);9*sin(x)];
+yv=[2*cos(x);9*cos(x)];
+xsegs(xv,yv,1:8)
 
-   a=get("current_axes");//get the handle of the newly created axes
-   a.data_bounds=[-10,-10;10,10];
-   x=2*%pi*(0:7)/8;
-   xv=[2*sin(x);9*sin(x)];
-   yv=[2*cos(x);9*cos(x)];
-   xsegs(xv,yv,1:8)
+s=a.children
+s.arrow_size=1;
+s.segs_color=15:22;
+for j=1:2
+  for i=1:8
+    h=s.data(i*2,j);
+    s.data(i*2,j)=s.data(i*2-1,j);
+    s.data(i*2-1,j)=  h;
+  end
+end
 
-   s=a.children
-   s.arrow_size=1;
-    s.segs_color=15:22;
-    for j=1:2
-      for i=1:8
-        h=s.data(i*2,j);
-        s.data(i*2,j)=s.data(i*2-1,j);
-        s.data(i*2-1,j)=  h;
-       end
-    end
-
-   s.segs_color=5; //set all the colors to 5
-
-   s.clip_box=[-4,4,8,8];
-   a.thickness=4;
-   xrect(s.clip_box);
+s.segs_color=5; //set all the colors to 5
 
+s.clip_box=[-4,4,8,8];
+a.thickness=4;
+xrect(s.clip_box);
  ]]></programlisting>
   </refsection>
   <refsection>
index 506cd53..f54d7b9 100644 (file)
@@ -105,29 +105,29 @@ h.prop=val</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-   clf()
-   set("auto_clear","off") ;
-   // Exemple of a Plot 2D
-   x=[-.2:0.1:2*%pi]';
-   plot2d(x-.3,[sin(x-1) cos(2*x)],[1 2] );
-   a=get("current_axes");
-   p1=a.children.children(1);
-   p2=a.children.children(2);
-   // set the named properties to the specified values on the objects
-   set(p2,"foreground",13);
-   set(p2,"polyline_style",2);
-   set(a,'tight_limits',"on");
-   set(a,"box","off");
-   set(a,"sub_tics",[ 7 0 ]);
-   set(a,"y_location","middle")
-   set(p2,'thickness',2);
-   set(p1,'mark_mode',"on");
-   set(p1,'mark_style',3);
-   plot2d(x-2,x.^2/20);
-   p3= a.children(1).children;
-   set([a p1 p2 p3],"foreground",5)
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+clf()
+set("auto_clear","off") ;
+// Exemple of a Plot 2D
+x=[-.2:0.1:2*%pi]';
+plot2d(x-.3,[sin(x-1) cos(2*x)],[1 2] );
+a=get("current_axes");
+p1=a.children.children(1);
+p2=a.children.children(2);
+// set the named properties to the specified values on the objects
+set(p2,"foreground",13);
+set(p2,"polyline_style",2);
+set(a,'tight_limits',"on");
+set(a,"box","off");
+set(a,"sub_tics",[ 7 0 ]);
+set(a,"y_location","middle")
+set(p2,'thickness',2);
+set(p1,'mark_mode',"on");
+set(p1,'mark_style',3);
+plot2d(x-2,x.^2/20);
+p3= a.children(1).children;
+set([a p1 p2 p3],"foreground",5)
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index de6c5ad..5ca89a2 100644 (file)
@@ -64,14 +64,14 @@ set_posfig_dim(0,0)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[ 
+    <programlisting role="example"><![CDATA[  
 // make a figure with a specific shape
 f=scf(0);f.figure_size=[800,300];
 plot2d();
 set_posfig_dim(f.figure_size(1),f.figure_size(2));
 filename='foo.ps';
 xs2ps(0,filename);
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 46b614c..f6b8c2e 100644 (file)
@@ -50,26 +50,24 @@ seteventhandler('')</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
+function my_eventhandler(win,x,y,ibut)
+  if ibut==-1000 then return,end
+  [x,y]=xchange(x,y,'i2f')
+  xinfo(msprintf('Event code %d at mouse position is (%f,%f)',ibut,x,y))
+endfunction
 
-   function my_eventhandler(win,x,y,ibut)
-      if ibut==-1000 then return,end
-      [x,y]=xchange(x,y,'i2f')
-       xinfo(msprintf('Event code %d at mouse position is (%f,%f)',ibut,x,y))
-   endfunction
-   plot2d()
-   seteventhandler('my_eventhandler')
-   //now:
-   //   -  move the mouse over the graphic window
-   //   -  press and release keys shifted or not with Ctrl pressed or not
-   //   -  press button, wait a little release
-   //   -  press and release button
-   //   -  double-click button
+plot2d()
+seteventhandler('my_eventhandler')
+//now:
+//   -  move the mouse over the graphic window
+//   -  press and release keys shifted or not with Ctrl pressed or not
+//   -  press button, wait a little release
+//   -  press and release button
+//   -  double-click button
 
-
-   seteventhandler('') //suppress the event handler
-  ]]></programlisting>
+seteventhandler('') //suppress the event handler
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 6c69efa..ec4168f 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-   
-   f=gcf();f.pixmap='on'; //set the pixmap mode
-   a=gca();a.data_bounds=[0 0; 10 10];
-   //construct two rectangles
-   xrects([0;10;1;1],5);r1=gce();r1=r1.children;
-   xrects([0;1;1;1],13);r2=gce();r2=r2.children;
-   //animation loop
-   for k=1:1000
-      //draw the rectangles in the pixmap buffer
-      move(r1,[0.01,-0.01]);move(r2,[0.01,0.01]) 
-      //show the pixmap buffer
-      show_pixmap()
-   end
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+f=gcf();f.pixmap='on'; //set the pixmap mode
+a=gca();a.data_bounds=[0 0; 10 10];
+//construct two rectangles
+xrects([0;10;1;1],5);r1=gce();r1=r1.children;
+xrects([0;1;1;1],13);r2=gce();r2=r2.children;
+//animation loop
+for k=1:1000
+  //draw the rectangles in the pixmap buffer
+  move(r1,[0.01,-0.01]);move(r2,[0.01,0.01]) 
+  //show the pixmap buffer
+  show_pixmap()
+end
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index daae98f..4652f8f 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 f = scf();
 plot3d1();
 f.color_map = springcolormap(32);
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 7583deb..07b17ea 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 t=[0:0.1:2*%pi]';
 plot2d(sin(t),cos(t))
 xbasc()
 square(-1,-1,1,1)
 plot2d(sin(t),cos(t))
 xset("default")
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index d923081..4b87fc1 100644 (file)
@@ -86,7 +86,8 @@ rect = stringbox( Handle )</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[// show axes
+    <programlisting role="example"><![CDATA[ 
+// show axes
 axes = gca() ;
 axes.axes_visible = 'on' ;
 axes.data_bounds = [ 1, 1 ; 10, 10 ] ;
@@ -122,9 +123,7 @@ if hit(1) >= rect(1,1)  & hit(1) <=  rect(1,2) & hit(2) <= rect(2,2) & hit(2) >=
 else
   disp('You missed it.')
 end;
-
-
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index e012355..6fb6f12 100644 (file)
@@ -51,8 +51,7 @@ subplot(mnp)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 subplot(221)
 plot2d()
 subplot(222)
@@ -61,8 +60,7 @@ subplot(2,2,3)
 param3d()
 subplot(2,2,4)
 hist3d()
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 28eff1d..80eacf7 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 f = scf();
 plot3d1();
 f.color_map = summercolormap(32);
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 5bd1ffb..333077d 100644 (file)
@@ -180,7 +180,7 @@ surf(&lt;axes_handle&gt;,...)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 // Z initialisation 
 
 Z= [   0.0001    0.0013    0.0053   -0.0299   -0.1809   -0.2465   -0.1100   -0.0168   -0.0008   -0.0000
@@ -245,7 +245,6 @@ X=[ -3.0000   -2.3333   -1.6667   -1.0000   -0.3333    0.3333    1.0000    1.666
 Y=X;
 surf(X,Y,Z)
 
-
 //LineSpec and GlobalProperty examples:
 xdel(winsid()) // destroy all existing figures
 surf(Z,Z+5) // color array specified
@@ -267,9 +266,7 @@ scf(11);
 surf(axfig10,Z,'ydat',[100:109],'marker','d','markerfac','green','markeredg','yel') // draw onto the axe of figure 10
 
 xdel(winsid())
-
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 6ba8acd..75367ae 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 //create a figure 
 t=[0:0.3:2*%pi]'; z=sin(t)*cos(t');
 [xx,yy,zz]=genfac3d(t,t,z); 
@@ -415,9 +415,7 @@ e=gce();
 e.color_flag=1 // color index proportional to altitude (z coord.)
 e.color_flag=2; // back to default mode
 e.color_flag= 3; // interpolated shading mode (based on blue default color because field data.color is not filled)
-
-
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 46a97ea..ed6fa95 100644 (file)
@@ -55,8 +55,9 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[//-----------------//
-//  First example         //
+    <programlisting role="example"><![CDATA[ 
+//-----------------//
+//  First example  //
 //-----------------//
 
 // create a rectangle
@@ -85,7 +86,7 @@ swap_handles( arrow, circle ) ;
 axes.children
 
 //-----------------//
-//  Second example    //
+//  Second example //
 //-----------------//
 
 // create two windows
@@ -99,9 +100,7 @@ axes2 = gca() ;
 // swap their axes
 // note that the color map does not change.
 swap_handles( axes1, axes2 ) ;
-
-
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 0042d6e..2e7693a 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-  a=get("current_axes");
-  a.data_bounds=[0,0;1,1];
-  a.axes_visible = 'on' ;
+    <programlisting role="example"><![CDATA[ 
+a=get("current_axes");
+a.data_bounds=[0,0;1,1];
+a.axes_visible = 'on' ;
 
-  xstring(0.5,0.5,"Scilab is not esilaB",0,0)
+xstring(0.5,0.5,"Scilab is not esilaB",0,0)
 
-  t=get("hdl")   //get the handle of the newly created object
+t=get("hdl")   //get the handle of the newly created object
 
-  t.font_foreground=6; // change font properties
-  t.font_size=5;
-  t.font_style=5;
+t.font_foreground=6; // change font properties
+t.font_size=5;
+t.font_style=5;
 
-  t.text=["SCILAB","is";"not","esilaB"] ; // change the text
-  t.font_angle=90 ; // turn the strings
-  t.text_box = [0,0] ;
-  t.text_box_mode = 'centered' ; // the text is now centered on [0.5,0.5].
-  t.alignment = 'center' ;
-  t.box = 'on' ; // draw a box around the text
+t.text=["SCILAB","is";"not","esilaB"] ; // change the text
+t.font_angle=90 ; // turn the strings
+t.text_box = [0,0] ;
+t.text_box_mode = 'centered' ; // the text is now centered on [0.5,0.5].
+t.alignment = 'center' ;
+t.box = 'on' ; // draw a box around the text
  ]]></programlisting>
   </refsection>
   <refsection>
index 57180ab..ebdabd7 100644 (file)
@@ -93,7 +93,8 @@ title(&lt;axes_handle&gt;,&lt;my_title&gt;,&lt;Property&gt;)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[// display a title with several properties 
+    <programlisting role="example"><![CDATA[ 
+// display a title with several properties 
 title('my title');
 // change the color for the font
 title('my title','color','blue');
@@ -108,8 +109,7 @@ title('my title','rotation',90);
 
 // We can do all these modifications with just the below instruction:
 title('my title','color','blue','edgecolor','red','fontsize',3,'rotation',90,'position',[0.3 0.8]);
-
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index ec3278a..1c493f6 100644 (file)
@@ -48,8 +48,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 x=linspace(-2*%pi,2*%pi,100)';
 plot2d(x,[sin(x),cos(x)]);
 e=gce(); p1=e.children(1); p2=e.children(2);
@@ -59,8 +58,7 @@ twinkle(p1)
 twinkle(p2,10)
 // axes twinkle
 twinkle(gca())
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index fd0ce78..4dfb74c 100644 (file)
@@ -47,31 +47,29 @@ unzoom(H)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-    clf()
-    x=0:0.01:6*%pi;
-    plot2d(x,sin(x^2))
-    zoom_rect([16,-1,18,1])
-    unzoom()
+    <programlisting role="example"><![CDATA[ 
+clf()
+x=0:0.01:6*%pi;
+plot2d(x,sin(x^2))
+zoom_rect([16,-1,18,1])
+unzoom()
 
-
-    //subplots accordingly
-    clf()
-    x=0:0.01:6*%pi;
-    subplot(211)
-    plot2d(x,cos(x))
-    a1=gca();
-    subplot(212)
-    plot2d(x,cos(2*x))
-    a2=gca();
-    rect=[3 -2 7 10]; // a rectangle specified in the current axes (last one) coordinates
-    zoom_rect(rect) 
-    unzoom(a1) // unzoom first plot only
-    unzoom(a2) // unzoom second plot only
-    zoom_rect(rect) // zoom again
-    unzoom(gcf()) // unzoom all the axes, equivalent to unzoom()
-
-]]></programlisting>
+//subplots accordingly
+clf()
+x=0:0.01:6*%pi;
+subplot(211)
+plot2d(x,cos(x))
+a1=gca();
+subplot(212)
+plot2d(x,cos(2*x))
+a2=gca();
+rect=[3 -2 7 10]; // a rectangle specified in the current axes (last one) coordinates
+zoom_rect(rect) 
+unzoom(a1) // unzoom first plot only
+unzoom(a2) // unzoom second plot only
+zoom_rect(rect) // zoom again
+unzoom(gcf()) // unzoom all the axes, equivalent to unzoom()
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index e671d59..edc5315 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 f = scf();
 plot3d1();
 f.color_map = whitecolormap(32);
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 5a87f5b..1dd8de9 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 f = scf();
 plot3d1();
 f.color_map = wintercolormap(32);
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 9cae1c8..108d99c 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 // isoview scaling 
 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>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 7cefc63..cb564ea 100644 (file)
@@ -49,8 +49,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 plot2d(0,0,-1,"031"," ",[-1,-1,1,1])
 arcs=[-1.0 0.0 0.5; // upper left x
        1.0 0.0 0.5; // upper left y
@@ -59,8 +58,7 @@ arcs=[-1.0 0.0 0.5; // upper left x
        0.0 0.0 0.0; // angle 1
        180*64 360*64 90*64]; // angle 2
 xarcs(arcs,[1,2,3])
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 220b43d..06bb160 100644 (file)
     the ith arrow is defined by
     <literal>(nx(i),ny(i))--&gt;(nx(i+1),ny(i+1))</literal>.
     If <literal>nx</literal> and <literal>ny</literal> are matrices:</para>
-    <programlisting><![CDATA[
-
+    <programlisting role = ""><![CDATA[ 
 nx=[xi_1 x1_2 ...; xf_1 xf_2 ...]
 ny=[yi_1 y1_2 ...; yf_1 yf_2 ...]
-   
-    ]]></programlisting>
+ ]]></programlisting>
     <para>
     the <literal>k</literal> th arrow is defined by <literal>(xi_k,yi_k)--&gt;(xf_k,yf_k)</literal>.</para>
     <para><literal>xarrows</literal> uses the current graphics scale 
@@ -65,8 +63,7 @@ ny=[yi_1 y1_2 ...; yf_1 yf_2 ...]
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 x=2*%pi*(0:9)/8;
 x1=[sin(x);9*sin(x)];
 y1=[cos(x);9*cos(x)];
@@ -74,8 +71,7 @@ plot2d([-10,10],[-10,10],[-1,-1],"022")
 xset("clipgrf")
 xarrows(x1,y1,1,1:10)
 xset("clipoff")
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>Authors</title>
index cf41e07..548f887 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 t=[0:0.1:2*%pi]';
 plot2d(t,sin(t))
 [x,y,rect]=xchange(1,1,"f2i")
 [x,y,rect]=xchange(0,0,"i2f")
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>Authors</title>
index 4801b0b..414fdd4 100644 (file)
@@ -58,8 +58,7 @@ xclip("clipgrf")</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 x=0:0.2:2*%pi;
 x1=[sin(x);100*sin(x)];
 y1=[cos(x);100*cos(x)];
@@ -82,8 +81,7 @@ e.clip_state='clipgrf';
 xclip("clipgrf")
 // remove clipping
 e.clip_state='off';
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index f6b1d27..c278a7c 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 // 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)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index bdce349..ea50629 100644 (file)
@@ -49,8 +49,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 plot2d(0,0,-1,"031"," ",[-1,-1,1,1])
 arcs=[-1.0 0.0 0.5; // upper left x
        1.0 0.0 0.5; // upper left y
@@ -59,8 +58,7 @@ arcs=[-1.0 0.0 0.5; // upper left x
        0.0 0.0 0.0; // angle 1
        180*64 360*64 90*64]; // angle 2
 xfarcs(arcs,[1,2,3])
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index d1c2c49..35dc381 100644 (file)
@@ -48,8 +48,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 x=sin(2*%pi*(0:4)/5);
 y=cos(2*%pi*(0:4)/5);
 plot2d(0,0,-1,"010"," ",[-2,-2,2,2])
@@ -62,8 +61,7 @@ e.fill_mode='off';
 e.closed = 'off' // the polyline is now open
   
 xset("default")
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index b9630c6..a6aa3e2 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-    
-    
-    a=gca();a.data_bounds=[0,-10;210,40];a.foreground=color('red');
-    x1=[0,10,20,30,20,10,0]';
-    y1=[15,30,30,15,0,0,15]';
-    xpols=[x1 x1 x1 x1]; xpols=xpols+[0,60,120,180].*.ones(x1);
-    ypols=[y1 y1 y1 y1];
-    xfpolys(xpols,ypols,[-1,0,1,2])
+    <programlisting role="example"><![CDATA[ 
+a=gca();a.data_bounds=[0,-10;210,40];a.foreground=color('red');
+x1=[0,10,20,30,20,10,0]';
+y1=[15,30,30,15,0,0,15]';
+xpols=[x1 x1 x1 x1]; xpols=xpols+[0,60,120,180].*.ones(x1);
+ypols=[y1 y1 y1 y1];
+xfpolys(xpols,ypols,[-1,0,1,2])
 
-    // interpolated colors
-    clf()
-    f=gcf();
-    a=gca();a.data_bounds=[0,-10;40,30];a.isoview='on';
-    x1=[0,10,20,10]';
-    y1=[10,0,10,20]';
-    c=linspace(2,100,4)';
-    xpols=[x1 x1+20 x1+10 x1+10];
-    ypols=[y1 y1    y1+10 y1-10];
-    cols= [c c($:-1:1) c([3 4 1 2]) c]
-    f.color_map=jetcolormap(max(cols));
-    xfpolys(xpols,ypols,cols)
+// interpolated colors
+clf()
+f=gcf();
+a=gca();a.data_bounds=[0,-10;40,30];a.isoview='on';
+x1=[0,10,20,10]';
+y1=[10,0,10,20]';
+c=linspace(2,100,4)';
+xpols=[x1 x1+20 x1+10 x1+10];
+ypols=[y1 y1    y1+10 y1-10];
+cols= [c c($:-1:1) c([3 4 1 2]) c]
+f.color_map=jetcolormap(max(cols));
+xfpolys(xpols,ypols,cols)
   
-    // interpolated colors
-    clf()
-    f=gcf();
-    x11=[0;20;20;0];y11=[10;10;30;30];c11=[10;10;30;30];
-    x12=x11;y12=y11+20;c12=[20;20;1;1];c12=[30;30;10;10];
-    x21=[0;30;30;0]+22;y21=[20;20;30;30];c21=[20;20;30;30];
-    x22=x21;y22=y21+10;c22=[30;30;20;20];
-    x31=[0;40;40;0]+55;y31=[0;0;30;30];c31=[0;0;30;30];
-    x32=x31;y32=y31+30;c32=[30;30;0;0];
-    X=[x11 x12 x21 x22 x31 x32];Y=[y11 y12 y21 y22 y31 y32];C=([c11 c12 c21 c22  c31 c32]+1)*5;
-    a=gca();a.isoview='on';
-    a.data_bounds=[min(X),min(Y);max(X),max(Y)];
-    f=gcf();f.color_map=graycolormap(max(C));
-    xfpolys(X,Y,C)
-
-    
-  ]]></programlisting>
+// interpolated colors
+clf()
+f=gcf();
+x11=[0;20;20;0];y11=[10;10;30;30];c11=[10;10;30;30];
+x12=x11;y12=y11+20;c12=[20;20;1;1];c12=[30;30;10;10];
+x21=[0;30;30;0]+22;y21=[20;20;30;30];c21=[20;20;30;30];
+x22=x21;y22=y21+10;c22=[30;30;20;20];
+x31=[0;40;40;0]+55;y31=[0;0;30;30];c31=[0;0;30;30];
+x32=x31;y32=y31+30;c32=[30;30;0;0];
+X=[x11 x12 x21 x22 x31 x32];Y=[y11 y12 y21 y22 y31 y32];C=([c11 c12 c21 c22  c31 c32]+1)*5;
+a=gca();a.isoview='on';
+a.data_bounds=[min(X),min(Y);max(X),max(Y)];
+f=gcf();f.color_map=graycolormap(max(C));
+xfpolys(X,Y,C)
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 02b9661..4031e86 100644 (file)
@@ -41,14 +41,12 @@ xfrect(rect) // rect =[x,y,w,h]</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 plot2d(0,0,-1,"010"," ",[-2,-2,2,2])
 xset("color",5)
 xfrect(-1,1,2,2)
 xset("default")
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 98c3390..d2afcfe 100644 (file)
@@ -62,8 +62,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 // first subwindow 
 xsetech([0,0,1.0,0.5])
 plot2d()
@@ -78,8 +77,7 @@ xsetech([0,0.5,1.0,0.5])
 [wrect,frect,logflag,arect]=xgetech();
 xbasc();
 xset('default')
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 96776e1..425b54d 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 //  rectangle selection
 clf();  // erase/create window
 a=gca();a.data_bounds=[0 0;100 100];//set user coordinates
@@ -195,8 +194,7 @@ while rep(3)==-1 do // mouse just moving ...
   r.data=[ox,oy,w,h]; //change the retangle origin, width an height
   first=%f;
 end
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 384363a..62b3d07 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
-  [x1,xa,np1,np2,kMinr,kMaxr,ar]=xgraduate(-0.3,0.2)
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+[x1,xa,np1,np2,kMinr,kMaxr,ar]=xgraduate(-0.3,0.2)
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index d0e0356..76a25d7 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 x=[0:0.1:2*%pi]';
 plot2d(sin(x))
 xgrid(2)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index c4c47b3..47232ee 100644 (file)
@@ -123,7 +123,7 @@ fonts=xlfont()</synopsis>
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
+    <programlisting role="example"><![CDATA[ 
 xlfont('reset');
 xlfont()
 
@@ -144,9 +144,7 @@ title_entity.font_size  = 4; // size scilabsymbols.ttf font
 xlfont()
 
 xlfont('reset');
-
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 42d1034..ba9efbf 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
-    //new style
-    t=0:0.01:10;
-    subplot(211),plot2d(t,sin(t))
-    subplot(212),plot2d(t,sin(3*t))
-    save(TMPDIR+'/foo.scg',gcf())
-    clf()
-    load(TMPDIR+'/foo.scg')
+    <programlisting role="example"><![CDATA[ 
+//new style
+t=0:0.01:10;
+subplot(211),plot2d(t,sin(t))
+subplot(212),plot2d(t,sin(3*t))
+save(TMPDIR+'/foo.scg',gcf())
+clf()
+load(TMPDIR+'/foo.scg')
     
-    a=gca();
-    curve=a.children.children; //handle on the curve
-    save(TMPDIR+'/foo.scg',curve)
-    delete(curve)
-    load(TMPDIR+'/foo.scg')
-    
-  ]]></programlisting>
+a=gca();
+curve=a.children.children; //handle on the curve
+save(TMPDIR+'/foo.scg',curve)
+delete(curve)
+load(TMPDIR+'/foo.scg')
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index eeb2017..942c660 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 plot2d([-100,500],[-100,600],[-1,-1],"022")
 x=0:100:200;
 xnumb(x,500*ones(x),[10,20,35],1)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 16baeb2..572171f 100644 (file)
@@ -58,8 +58,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 x=sin(2*%pi*(0:4)/5);
 y=cos(2*%pi*(0:4)/5);
 
@@ -70,7 +69,7 @@ xpoly(x,y,"lines",1) // by default closed
 // News graphics only
 e=gce(); // get the current entity (the last created: here the polyline)
 e.closed = 'off' // the polyline is now open
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index ad15395..6522086 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 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])
 xset("default")
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index c80debe..086ede9 100644 (file)
@@ -42,14 +42,12 @@ xrect(rect) // rect =[x,y,w,h]</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 plot2d(0,0,-1,"010"," ",[-2,-2,2,2])
 xset("color",5)
 xrect(-1,1,2,2)
 xset("default")
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index af69081..d91bda7 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 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)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 34d1e0e..e0afc31 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 plot2d(0,0,-1,"012"," ",[0,0,10,10])
 xrpoly([5,5],5,5)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 3b27e59..ae24c68 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
-    //new style
-    t=0:0.01:10;
-    subplot(211),plot2d(t,sin(t))
-    subplot(212),plot2d(t,sin(3*t))
-    save(TMPDIR+'/foo.scg',gcf())
-    clf()
-    load(TMPDIR+'/foo.scg')
-    
-    a=gca();
-    curve=a.children.children; //handle on the curve
-    save(TMPDIR+'/foo.scg',curve)
-    delete(curve)
-    load(TMPDIR+'/foo.scg')
-    
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+//new style
+t=0:0.01:10;
+subplot(211),plot2d(t,sin(t))
+subplot(212),plot2d(t,sin(3*t))
+save(TMPDIR+'/foo.scg',gcf())
+clf()
+load(TMPDIR+'/foo.scg')
+   
+a=gca();
+curve=a.children.children; //handle on the curve
+save(TMPDIR+'/foo.scg',curve)
+delete(curve)
+load(TMPDIR+'/foo.scg')
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index cdaf6d5..3c44a5c 100644 (file)
     <para><literal>(xv(i),yv(i))--&gt;(xv(i+1),yv(i+1))</literal>.</para>
     <para>For instance, using matrices of size (2,n), the segments can be defined
     by:</para>
-    <programlisting><![CDATA[xv=[xi_1 xi_2 ...; xf_1 xf_2 ...] yv=[yi_1 yi_2 ...; yf_1 yf_2
-    ...]]]></programlisting>
+    <programlisting><![CDATA[ 
+xv=[xi_1 xi_2 ...; xf_1 xf_2 ...] 
+yv=[yi_1 yi_2 ...; yf_1 yf_2 ...]
+ ]]></programlisting>
     <para>and the segments are <literal>(xi_k,yi_k)--&gt;(xf_k,yf_k)</literal>.</para>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 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)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>Authors</title>
index 0059f23..c6209f2 100644 (file)
@@ -268,11 +268,21 @@ xset()</synopsis>
         <listitem>
           <para>If flag=1 then the graphic is automatically resized to fill the
         graphics window.</para>
-          <programlisting><![CDATA[xdel();xset("wresize",1);plot2d();xset("wdim",1000,500)]]></programlisting>
+          <programlisting role = ""><![CDATA[ 
+xdel();
+xset("wresize",1);
+plot2d();
+xset("wdim",1000,500)
+ ]]></programlisting>
           <para>If flag=0 the scale of the graphic is left unchanged when the
         graphics window is resized. Top left panner or keyboard arrows may be
         used to scroll over the graphic.</para>
-          <programlisting><![CDATA[xdel();plot2d();xset("wresize",0);xset("wdim",1000,500)]]></programlisting>
+          <programlisting role = ""><![CDATA[ 
+xdel();
+plot2d();
+xset("wresize",0);
+xset("wdim",1000,500)
+ ]]></programlisting>
         </listitem>
       </varlistentry>
       <varlistentry>
index dd35d6d..0ad586f 100644 (file)
@@ -82,12 +82,10 @@ xsetech()</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 // To get a graphical explanation of xsetech parameters enter:
 exec('SCI/modules/graphics/demos/xsetechfig.sce');
 
-
 // Here xsetech is used to split the graphics window in two parts 
 // first xsetech is used to set the first sub-window 
 // and the graphics scale 
@@ -119,8 +117,7 @@ xsetech(arect=[1/8,1/8,1/16,1/4])
 x=1:0.1:10;plot2d(x',sin(x)')
 xbasc()
 xset("default")
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index f8cf665..e346025 100644 (file)
@@ -62,8 +62,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 plot2d([0;1],[0;1],0)
 xstring(0.5,0.5,["Scilab" "is"; "not" "esilaB"])
 //Other example
@@ -82,8 +81,7 @@ xset("font",1,3)              // change size font
 xstring(0.1,0.3,alphabet)
 xset("font",1,24); xstring(0.1,0.6,"a") //big alpha
 xset("default")
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 5625476..8e9f52c 100644 (file)
@@ -59,8 +59,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 str=["Scilab" "is";"not" "elisaB"];
 plot2d(0,0,[-1,1],"010"," ",[0,0,1,1]);
 r=[0,0,1,0.5];
@@ -72,8 +71,7 @@ xstringb(r(1),r(2),str,r(3),r(4),"fill");
 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>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 909db9b..0d6b14e 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 plot2d([0;1],[0;1],0)
 str=["Scilab" "is";"not" "elisaB"];
 r=xstringl(0.5,0.5,str)
 xrects([r(1) r(2)+r(4) r(3) r(4)]')
 xstring(r(1),r(2),str)
 
 plot2d([0;1],[0;1],0)
 str=["Scilab" "n''est ";"pas" "Matlab"];
@@ -86,7 +84,8 @@ xstring(r2(1),r2(2),str)
 
 txt2=gce();
 txt2.font_size = 5;
-txt2.font_style = 2;  ]]></programlisting>
+txt2.font_style = 2;
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 505fc21..89cbf02 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[// draw a surface
+    <programlisting role="example"><![CDATA[ 
+// draw a surface
 plot3d() ;
 // puts the titles
 xtitle( 'My surface is blue', 'X axis', 'Y axis', 'Z axis' ) ;
 // draw a box around the titles
-xtitle( 'My surface is blue', 'X axis', 'Y axis', 'Z axis', boxed = 1 ) ;]]></programlisting>
+xtitle( 'My surface is blue', 'X axis', 'Y axis', 'Z axis', boxed = 1 );
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index d32062f..b51b5e4 100644 (file)
@@ -68,44 +68,42 @@ zoom_rect(h,rect)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-    clf()
-    x=0:0.01:6*%pi;
-    plot2d(x,sin(x^2))
-    zoom_rect([16,-1,18,1])
-    //more zoom
-    zoom_rect([16,0,16.2,1])
-    //back to the original
-    unzoom()
-    // zooming using axes_properties
-    a=gca();
-    a.zoom_box=[16,0,16.2,1];
-    a.zoom_box=[];
+    <programlisting role="example"><![CDATA[ 
+clf()
+x=0:0.01:6*%pi;
+plot2d(x,sin(x^2))
+zoom_rect([16,-1,18,1])
+//more zoom
+zoom_rect([16,0,16.2,1])
+//back to the original
+unzoom()
+// zooming using axes_properties
+a=gca();
+a.zoom_box=[16,0,16.2,1];
+a.zoom_box=[];
 
-    //zooming subplots accordingly
-    clf()
-    x=0:0.01:6*%pi;
-    subplot(211)
-    plot2d(x,cos(x))
-    subplot(212)
-    plot2d(x,cos(2*x))
-    rect=[3 -2 7 10]; //a rectangle specified in the current axes (last one) coordinates
-    zoom_rect(rect) 
-    unzoom()
-    //set the global underlying axes as current
-    f=gcf();set('current_axes',f.children($)) 
-    rect=[0.4 0 0.6 1] //a rectangle specified in ratio of the window size
-    zoom_rect(rect) 
-    rect=[0.4 0.2 0.6 0.8]; //a rectangle specified in ratio of the window size
-    zoom_rect(rect)
-
-    // interactive zoom on current figure
-    zoom_rect();
-    // or
-    zoom_rect(gcf());
+//zooming subplots accordingly
+clf()
+x=0:0.01:6*%pi;
+subplot(211)
+plot2d(x,cos(x))
+subplot(212)
+plot2d(x,cos(2*x))
+rect=[3 -2 7 10]; //a rectangle specified in the current axes (last one) coordinates
+zoom_rect(rect) 
+unzoom()
+//set the global underlying axes as current
+f=gcf();set('current_axes',f.children($)) 
+rect=[0.4 0 0.6 1] //a rectangle specified in ratio of the window size
+zoom_rect(rect) 
+rect=[0.4 0.2 0.6 0.8]; //a rectangle specified in ratio of the window size
+zoom_rect(rect)
 
-]]></programlisting>
+// interactive zoom on current figure
+zoom_rect();
+// or
+zoom_rect(gcf());
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 6b215ef..d93f60a 100644 (file)
@@ -88,7 +88,7 @@ bar([h],x,y [,width [,color [,style]]])</synopsis>
   </refsection>
   <refsection>
     <title>Exemples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 // Premier exemple : dessine une barre, avec les paramètres width=0.5
 // et color='yellow' et par défaut x=1:length(y), style = 'grouped'.
 scf(0);
@@ -109,7 +109,7 @@ bar(x,y,'stacked');
 scf(3);
 x=[1 2 5]; y=[1 4 7;2 5 8;3 6 9];
 bar(x,y,0.2,'green');
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>Voir Aussi</title>
index 76bbf54..991910d 100644 (file)
@@ -95,7 +95,7 @@ barh([h],x,y [,width [,color [,style]]])</synopsis>
   </refsection>
   <refsection>
     <title>Exemples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 // Premier exemple : dessine juste une barre, width=0.5, color='yellow', par défaut x=1:length(y)
 scf(0);
 y=[1 -3 5];
@@ -115,7 +115,7 @@ barh(x,y,'stacked');
 scf(3);
 x=[1 2 5]; y=[1 4 7;2 5 8;3 6 9];
 barh(x,y,0.2,'green');
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>Voir Aussi</title>
index 2f320e0..7c48d90 100644 (file)
@@ -57,7 +57,7 @@ barhomogenize([h[,'style'[,'width']]])</synopsis>
   </refsection>
   <refsection>
     <title>Exemples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 // Premier exemple : creation d'une barre jaune(i.e une polyline de type polyline_style=6) et de 3 barres(i.e 3 polylines de type polyline_style=6)
 subplot(2,3,1)
 xtitle('ex1: creation of 1 yellow bar and  3 bars')
@@ -104,7 +104,7 @@ barhomogenize();
 // change the style and the width
 //barhomogenize('stacked',0.5);
 //barhomogenize('stacked',1);
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>Voir Aussi</title>
index d121984..3909e94 100644 (file)
                 <para>
      Si <literal>nz</literal> est un entier, sa valeur définit le nombre de courbes
                  de niveaux espacées régulièrement entre zmin et zmax :</para>
-                <programlisting><![CDATA[
-       z= zmin + (1:nz)*(zmax-zmin)/(nz+1)
-     ]]></programlisting>
+                <programlisting role = ""><![CDATA[ 
+z= zmin + (1:nz)*(zmax-zmin)/(nz+1)
+ ]]></programlisting>
                 <para>
     Noter que les niveaux <literal>zmin</literal> et <literal>zmax</literal> ne sont pas
                  dessinés (génériquement ils sont réduits à des points) mais
                  peuvent être ajoutés avec
 
     </para>
-                <programlisting><![CDATA[
-       [im,jm] = find(z == zmin);     // ou zmax 
-        plot2d(x(im)',y(jm)',-9,"000")
-    ]]></programlisting>
+                <programlisting role = ""><![CDATA[ 
+[im,jm] = find(z == zmin);     // ou zmax 
+plot2d(x(im)',y(jm)',-9,"000")
+ ]]></programlisting>
               </listitem>
             </varlistentry>
             <varlistentry>
@@ -85,7 +85,7 @@
   </refsection>
   <refsection>
     <title>Exemples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 [xc,yc]=contour2di(1:10,1:10,rand(10,10),5);
 k=1;n=yc(k);c=1;
 while k+yc(k)<size(xc,'*')
@@ -94,7 +94,6 @@ while k+yc(k)<size(xc,'*')
   c=c+1;
   k=k+n+1;
 end
-
  ]]></programlisting>
   </refsection>
   <refsection>
index 47b7df6..6ad95b6 100644 (file)
                 définit le nombre de courbes de niveaux espacées régulièrement
                 entre zmin et zmax :</para>
 
-                <programlisting>
- z= zmin + (1:nz)*(zmax-zmin)/(nz+1)
-   </programlisting>
+                <programlisting role = ""><![CDATA[ 
+z= zmin + (1:nz)*(zmax-zmin)/(nz+1)
+ ]]></programlisting>
 
                 <para>Noter que les niveaux <literal>zmin</literal> et
                 <literal>zmax</literal> ne sont pas dessinés (génériquement
                 ils sont réduits à des points) mais peuvent être ajoutés
                 avec</para>
 
-                <programlisting>
- [im,jm] = find(z == zmin);     // ou zmax 
- plot2d(x(im)',y(jm)',-9,"000")
-   </programlisting>
+                <programlisting role = ""><![CDATA[ 
+[im,jm] = find(z == zmin);     // ou zmax 
+plot2d(x(im)',y(jm)',-9,"000")
+ ]]></programlisting>
               </listitem>
             </varlistentry>
 
   <refsection>
     <title>Exemples</title>
 
-    <programlisting role="example">
+    <programlisting role="example"><![CDATA[ 
 contourf(1:10,1:10,rand(10,10),5,1:5,"011"," ",[0,0,11,11])
 
 function z=peaks(x,y)
@@ -158,8 +158,7 @@ contourf([],[],z,[-6:-1,-logspace(-5,0,10),logspace(-5,0,10),1:8],0*ones(1,m))
 xset('fpf','');
 xbasc();
 contourf([],[],z,[-6:-1,-logspace(-5,0,10),logspace(-5,0,10),1:8]);
-
- </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -185,4 +184,4 @@ contourf([],[],z,[-6:-1,-logspace(-5,0,10),logspace(-5,0,10),1:8]);
 
     <para>J.Ph.C.</para>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index 255dc91..43bd601 100644 (file)
@@ -49,7 +49,7 @@
   </refsection>
   <refsection>
     <title>Exemples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 xsetech(frect=[0,0,100,100])
 r=dragrect([10;10;30;10])
 xrect(r)
index 81449ee..da569c2 100644 (file)
   </refsection>
   <refsection>
     <title>Exemples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 plot2d(1:10,1:10,1,"020")
 // axe horizontal
 drawaxis(x=2:7,y=4,dir='u',tics='v')