<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi all<br>
<br>
I figured it out. At the beginning of the script I can call gdf
and set parameters. I did:<br>
<br>
<pre style="font-family:Monospaced;font-style:normal;font-size:16.0;"><span style="color:rgb(160,32,240);">if</span> <span style="color:rgb(0,0,0);">saveplots</span> <span style="color:rgb(160,32,240);">then</span> <span style="color:rgb(100,174,100);font-style:italic;">// if plots are to be saved to disk, then</span>
<span style="color:rgb(0,0,0);">plotsize</span> <span style="color:rgb(92,92,92);">=</span> <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(0,0,0);">;</span> <span style="color:rgb(100,174,100);font-style:italic;">// make larger plot, default is 626 x 587</span>
<span style="color:rgb(0,0,0);">p</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(0,0,0);">gdf</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span> <span style="color:rgb(100,174,100);font-style:italic;">// Get Default Figure (p = PLOT) settings</span>
<span style="color:rgb(0,0,0);">p</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">figure_position</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(74,85,219);">[</span><span style="color:rgb(188,143,143);">80</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">20</span><span style="color:rgb(74,85,219);">]</span><span style="color:rgb(0,0,0);">;</span> <span style="color:rgb(100,174,100);font-style:italic;">// default is 200 x 200</span>
<span style="color:rgb(100,174,100);font-style:italic;">// p.figure_size = [931,750];</span>
<span style="color:rgb(160,32,240);">end</span></pre>
... The (default) figure_size didn't work, so it's commented out,
and so I continue to reset the plot size for each plot
individually.<br>
<br>
Is this a Scilab bug, or is it my scripting being weird (again) ??<br>
<br>
Best regards,<br>
Claus<br>
<br>
On 10-09-2017 13:35, Claus Futtrup wrote:<br>
</div>
<blockquote type="cite"
cite="mid:0d02540f-22d3-2301-205e-59481a8aefdd@gmail.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<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>
<p>Best regards,</p>
<p>Claus<br>
</p>
<p><br>
</p>
</blockquote>
<p><br>
</p>
</body>
</html>