<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 01/08/2019 à 23:04, VTX1801 a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:1564693485411-0.post@n3.nabble.com">
<pre class="moz-quote-pre" wrap="">Further testing an some progress.
Suggestion of GUI window not dockable.
Looked at the properties of the figure and there is a dockable property.
The dockable property was set to 'off'.
Set the dockable property to 'on'.
Executed print command and no Java exception error.</pre>
</blockquote>
<p>Great.<br>
</p>
<blockquote type="cite"
cite="mid:1564693485411-0.post@n3.nabble.com">
<pre class="moz-quote-pre" wrap="">figid = f("figure_id");
disp(figid);
status = printfigure(figid);
disp(status);
Console displays 0 for figid.
Console displays T for status.
One page is printed on the printer.
However, the printed image is about one third of the plot figure only.
As though the scale of the print is zoomed in.
Looking for some property to set print to scale whole image to fill printed sheet.
Is there a Scilab printer property for this purpose?</pre>
</blockquote>
<p><br>
</p>
<p>Not AFAIK, even through printsetupbox().<br>
But you can resize the GUI before exporting it, through its handle
with f.axes_size.<br>
<br>
Could you please try with the trivial example below and check
whether the uicontrol appears on the image (before planning to
resize and print it ;-):</p>
<pre style="font-family:Monospaced;font-style:normal;font-size:12.0;"><span style="color:rgb(50,185,185);">plot2d</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(74,85,219);">)</span>
<span style="color:rgb(50,185,185);">uicontrol</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">style</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">text</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">string</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">Test</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">position</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(74,85,219);">[</span><span style="color:rgb(188,143,143);">10</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">10</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">100</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(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(50,185,185);">xs2png</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(174,92,176);text-decoration:underline;">gcf</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(188,143,143);">"</span><span style="color:rgb(188,143,143);">test.png</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(74,85,219);">)</span>
<span style="color:rgb(50,185,185);">winopen</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">test.png</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(74,85,219);">)</span></pre>
<br>
</body>
</html>