<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Samuel<br>
<br>
Thanks for all the (different email) responses - and below tip how
to directly put the figure size with the scf() command. This
directly answers my initial question. Thanks.<br>
<br>
How do you guys figure this out? Looking directly in the Scilab
source-code? :-)<br>
<br>
Best regards,<br>
Claus<br>
<br>
On 10-09-2017 17:15, Samuel Gougeon wrote:<br>
</div>
<blockquote type="cite"
cite="mid:f7a5c66e-cacd-a81f-133c-02117a210aab@free.fr">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Hello,<br>
<br>
Le 10/09/2017 à 13:35, Claus Futtrup a écrit :<br>
</div>
<blockquote
cite="mid:0d02540f-22d3-2301-205e-59481a8aefdd@gmail.com"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<p>Hi there</p>
<p>When I create a new figure, I do newfig = scf();</p>
<p>Then to make the figure larger I do newfig.figure_size = <span
style="color:rgb(74,85,219);">[</span><span
style="color:rgb(188,143,143);">931</span><span
style="color:rgb(0,0,0);">,</span><span
style="color:rgb(188,143,143);">750</span><span
style="color:rgb(74,85,219);">];</span> <span
style="color:rgb(100,174,100);font-style:italic;">// default
is 626 x 587</span><span
style="color:rgb(100,174,100);font-style:italic;"><br>
</span></p>
<p><span style="color:rgb(100,174,100);font-style:italic;">//
When height = 750 is specified, then it correctly becomes
817.</span><span
style="color:rgb(100,174,100);font-style:italic;"><br>
</span></p>
<p><span style="color:rgb(100,174,100);font-style:italic;">// I
have no idea why. Scilab is a bit weird.</span></p>
<p>The top left corner stays the same, so the figure scales
down. (Kinda smart, so you can always get hold of the top bar
of the window), but unfortunately my PC monitor is not so
large, the figure expand beyond the bottom of the screen.</p>
<p>Is there a way in which I can call scf() with the desired
figure size already preset? ... something like
scf(figure._size = <span style="color:rgb(74,85,219);">[</span><span
style="color:rgb(188,143,143);">931</span><span
style="color:rgb(0,0,0);">,</span><span
style="color:rgb(188,143,143);">750</span><span
style="color:rgb(74,85,219);">]</span>); maybe ?</p>
</blockquote>
<br>
In Scilab 6:<br>
<tt>--> scf().figure_size = [931 750];</tt><tt><br>
--> // Isn't this great? There are not only weird things in
Scilab ;)<br>
</tt><br>
In both Scilab 5 and 6:<br>
<tt>--> set(scf(), "figure_size", [931 750]);</tt><tt><br>
</tt><br>
HTH<br>
Samuel<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>