1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2008 - INRIA - Sylvestre Koumar
6 * Copyright (C) 2012 - 2016 - Scilab Enterprises
8 * This file is hereby licensed under the terms of the GNU GPL v2.0,
9 * pursuant to article 5.3.4 of the CeCILL v.2.1.
10 * This file was originally licensed under the terms of the CeCILL v2.1,
11 * and continues to be available under such terms.
12 * For more information, see the COPYING file which you should have received
13 * along with this program.
16 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="xs2ps" xml:lang="en">
18 <refname>xs2ps</refname>
19 <refpurpose>export graphics to PS</refpurpose>
24 xs2ps(win_num, file_name [,orientation])
25 xs2ps(fig, file_name [,orientation])
29 <title>Arguments</title>
34 <para>an integer, ID of the figure to export.</para>
40 <para>handle of the figure to export.</para>
44 <term>file_name</term>
46 <para>a string, name of the exported file.</para>
50 <term>orientation</term>
53 an optional string, with possible values
54 <literal>'portrait'</literal> or
55 <literal>'landscape'</literal>. The default
56 value is <literal>'portrait'</literal>.
63 <title>Description</title>
65 <function>xs2ps</function> exports the display of a graphic
66 window into a PostScript file.
69 Note that the generated Postscript file cannot be directly
70 printed since it requires a header file. The function
71 <function>xs2eps</function> can be used to directly produce
72 an Encapsulated Postscript file with a header.
76 <title>Examples</title>
77 <programlisting role="example"><![CDATA[
85 <refsection role="see also">
86 <title>See also</title>
87 <simplelist type="inline">
89 <literal>figure_size</literal> property in <link linkend="figure_properties">figure_properties</link>
92 <link linkend="toprint">toprint</link>
95 <link linkend="printfigure">printfigure</link>
98 <link linkend="xs2bmp">xs2bmp</link>
101 <link linkend="xs2gif">xs2gif</link>
104 <link linkend="xs2jpg">xs2jpg</link>
107 <link linkend="xs2png">xs2png</link>
110 <link linkend="xs2ppm">xs2ppm</link>
113 <link linkend="xs2eps">xs2eps</link>
116 <link linkend="xs2pdf">xs2pdf</link>
119 <link linkend="xs2svg">xs2svg</link>
122 <link linkend="xs2emf">xs2emf</link>