1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
4 <LANGUAGE>eng</LANGUAGE>
8 <TYPE>Scilab Function</TYPE>
10 <DATE>$LastChangedDate: 2006-08-03 16:16:36 +0200 (jeu., 03 août 2006) $</DATE>
12 <SHORT_DESCRIPTION name="xs2ps">send graphics to a file in PS
13 syntax</SHORT_DESCRIPTION>
16 <CALLING_SEQUENCE_ITEM>xs2ps(win_num,filen,[color])</CALLING_SEQUENCE_ITEM>
22 <PARAM_NAME>win_num</PARAM_NAME>
25 <SP>: integer scalar or vector .</SP>
30 <PARAM_NAME>filen</PARAM_NAME>
33 <SP>: string, file name.</SP>
38 <PARAM_NAME>color</PARAM_NAME>
41 <SP>: optional integer. 0 means black and white and 1 means color.
42 The default value is to use a value compatible with the screen
50 <P>The function xs2ps will not be available in version alpha</P>
51 <P><VERB>xs2ps</VERB> saves the recorded graphics of the window
52 <VERB>win_num</VERB> to file <VERB>filen</VERB> in Postscript syntax. The
53 <VERB>filen</VERB> must not have suffix extension.</P>
55 <P>Note that the generated Postscript file cannot be direcly printed since
56 it requires a header file. The Scilab command <VERB>BEpsf</VERB> or others
57 can be used to add a header file. The function <VERB>xs2eps</VERB> can be
58 used to directly produce an encapsulated Postscript file with an
61 <P>This function works only if the selected driver is <VERB>"Rec"</VERB>
62 in the window <VERB>win_num</VERB> or if the window is in "new style". The
63 generated postscript file does not contrains the header part</P>
70 filename='foo'; // ! no extension
72 //add the Postscript file header and create <filename>.eps file
74 unix_s(pathconvert('""'+WSCI+'/bin/BEpsf'+'""',%f)+' -p ' +filename)
76 unix_s(pathconvert('SCI/bin/BEpsf',%f)+' -p ' +filename)
86 <LINK>set_posfig_dim</LINK>