xs2ps - send graphics to a file in PS syntax
xs2ps saves the recorded graphics of the window win_num to file filen in Postscript syntax. The filen must not have suffix extension.
Note that the generated Postscript file cannot be direcly printed since it requires a header file. The Scilab command BEpsf or others can be used to add a header file. The function xs2eps can be used to directly produce an encapsulated Postscript file with an header.
This function works only if the selected driver is "Rec" in the window win_num or if the window is in "new style". The generated postscript file does not contrains the header part
scf(0) plot2d() // Postcript export filename='foo'; // ! no extension xs2ps(0,filename) //add the Postscript file header and create <filename>.eps file if MSDOS then unix_s(pathconvert('""'+WSCI+'/bin/BEpsf'+'""',%f)+' -p ' +filename) else unix_s(pathconvert('SCI/bin/BEpsf',%f)+' -p ' +filename) end // Gif export xs2gif(0,'foo.gif') // ppm export xs2ppm(0,'foo.ppm')
set_posfig_dim , printing , xs2eps , xs2fig , xs2gif , xbasimp , xs2ppm ,