Name

xs2ps — send graphics to a file in PS syntax

Calling Sequence

xs2ps(win_num,filen,[orientation])

Parameters

win_num

integer scalar or vector .

filen

string, file name.

orientation

optional character, with possible values 'p' (portrait) or 'l' (landscape). The default value is 'p'.

Description

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 function xs2eps can be used to directly produce an encapsulated Postscript file with an header.

Examples

scf(0);
plot2d();
// Postcript export
filename='foo.ps';
xs2ps(0,filename);
    

See Also

set_posfig_dim, toprint, printfigure, xs2bmp, xs2gif, xs2jpg, xs2png, xs2ppm, xs2eps, xs2pdf, xs2svg, xs2fig, xs2emf