<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 10/09/2017 à 17:32, Samuel Gougeon a
écrit :<br>
</div>
<blockquote cite="mid:133bbc7c-a66b-45d2-b1d8-f8ab13308a1b@free.fr"
type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Le 10/09/2017 à 14:03, Claus Futtrup
a écrit :<br>
</div>
<blockquote
cite="mid:1b2a7337-974d-a5be-df63-013e3d3aedbb@gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<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,</div>
</blockquote>
<br>
Yes it is: confirmed. It is not yet reported.<br>
Just after calling scf() or figure(), the new figure is correctly
sized according to the gdf().figure_size values.<br>
After a fraction of a second, it is then resized to the default
default sizes instead..<br>
</blockquote>
<br>
It is now reported here: <a class="moz-txt-link-freetext" href="http://bugzilla.scilab.org/15270">http://bugzilla.scilab.org/15270</a><br>
<br>
This bug is a regression brought by Scilab 5.0! (yes: 5, not 6)<br>
<br>
</body>
</html>