1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) INRIA - Serge Steer
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
13 <!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
15 <LANGUAGE>eng</LANGUAGE>
17 <TITLE>set_posfig_dim</TITLE>
19 <TYPE>Scilab Function</TYPE>
21 <DATE>$LastChangedDate$</DATE>
23 <SHORT_DESCRIPTION name="set_posfig_dim">change defaut transformation for
24 exporting in postscript</SHORT_DESCRIPTION>
27 <CALLING_SEQUENCE_ITEM>set_posfig_dim(w,h)</CALLING_SEQUENCE_ITEM>
29 <CALLING_SEQUENCE_ITEM>set_posfig_dim(0,0)</CALLING_SEQUENCE_ITEM>
35 <PARAM_NAME>w</PARAM_NAME>
38 <SP>: graphic figure width, number of pixels</SP>
43 <PARAM_NAME>h</PARAM_NAME>
46 <SP>: graphic figure height, number of pixels</SP>
53 <P><VERB>set_posfig_dim(w,h)</VERB> set the coordinates transformation to
54 be used when exporting a graphic window in postscript. The graphic figure
55 zoomed with ratios <VERB>w/<graphic figure width></VERB>
56 horizontally and <VERB>h/<graphic figure height></VERB>
59 <P>This function is particularily useful when one wants an export a
60 graphic figure exactly as it is shown on the screen. For that
61 <VERB>w</VERB> and <VERB>h</VERB> has to be set respectively to
62 <VERB><graphic figure width></VERB> and
63 <VERB><graphic figure height></VERB></P>
65 <P><VERB>set_posfig_dim(0,0)</VERB> resets the default values:
66 <VERB>w=600</VERB>, <VERB>h=424</VERB>.</P>
70 // make a figure with a specific shape
71 f=scf(0);f.figure_size=[800,300];
73 set_posfig_dim(f.figure_size(1),f.figure_size(2));
84 <AUTHOR>Serge Steer INRIA</AUTHOR>