<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
One more detail: if the ylabel of one of the plots is not required,
the graph doesn't extend towards the left but has the same width as
the others. This is what one would expect from the use of xlabel:
its presence or absence shouldn't affect the height of the plot
relative to the other plots. <br>
<br>
Federico<br>
<br>
<br>
<div class="moz-cite-prefix">On 15/07/2021 21:47, Federico Miyara
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:ace77de5-75cc-815d-7bd7-0a5f60e08129@fceia.unr.edu.ar">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<br>
<font face="Courier New">Philipp,<br>
<br>
Thanks! That's the reason indeed!<br>
<br>
The workarounds do work but with pitfalls. With xstring() the
label moves around when zooming in or out, and xlabel takes too
much space, in fact saving space was the reason to place it only
on the last plot. <br>
<br>
</font><font face="Courier New">Probably </font><font
face="Courier New">it would be possible to adapt the coordinates
x, y for xetring to the bounds of the axes, but I'm not sure the
positions would be updated when interactively zooming.<br>
<br>
The desired behavior would be that by default all plots would be
the same size or that it would be possible to place a label
relative to a figure<br>
<br>
Regards,<br>
<br>
Federico<br>
<br>
<br>
</font>On 15/07/2021 04:02, P M wrote:<br>
<blockquote type="cite"
cite="mid:CACf7ODux6P2HAQ8P8H6DVdaYupK9KsvUzBF=ZJWNBfpfFfH2tg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<div dir="ltr"><br>
<div class="gmail_quote">
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr">
<div>Hi Federico,</div>
<div><br>
</div>
<div>my best guess: In your example only
subplot(4,1,4) gets the x_label</div>
<div>Since this needs space, the diagram is smaller.</div>
<div><br>
</div>
<div>Workaround: create label for x-axis via
xstring</div>
<div><br>
</div>
<div>Or: <br>
</div>
<div><br>
</div>
<div>Assign a x_label for each subplot, but hide it.</div>
<div> This will assign "space" for the label, but it
won't be displayed...hence all diagrams should look
the same... </div>
<div><br>
</div>
<pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">x</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(50,185,185)">linspace</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(188,143,143)">0</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(188,143,143)">2</span><span style="color:rgb(92,92,92)">*</span><span style="color:rgb(218,112,214)">%pi</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(188,143,143)">1000</span><span style="color:rgb(74,85,219)">)</span>
<span style="color:rgb(0,0,0)">y</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(50,185,185)">sin</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">x</span><span style="color:rgb(74,85,219)">)</span>
<span style="color:rgb(0,0,0)">f</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(50,185,185)">figure</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(0,0,0)">f</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">background</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">8</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(160,32,240)">for</span> <span style="color:rgb(0,0,0)">i</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">1</span><span style="color:rgb(255,170,0)">:</span><span style="color:rgb(188,143,143)">4</span>
<span style="color:rgb(174,92,176);text-decoration:underline">subplot</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(188,143,143)">4</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(188,143,143)">1</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(0,0,0)">i</span><span style="color:rgb(74,85,219)">)</span>
<span style="color:rgb(174,92,176);text-decoration:underline">plot</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">x</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(0,0,0)">y</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(0,0,0)">a</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(174,92,176);text-decoration:underline">gca</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(0,0,0)">a</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">x_label</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">text</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">'</span><span style="color:rgb(188,143,143)">t</span><span style="color:rgb(188,143,143)">'</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(0,0,0)">a</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">x_label</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">visible</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">'</span><span style="color:rgb(188,143,143)">off</span><span style="color:rgb(188,143,143)">'</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(160,32,240)">end</span>
<span style="color:rgb(0,0,0)">a</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">x_label</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">visible</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">'</span><span style="color:rgb(188,143,143)">on</span><span style="color:rgb(188,143,143)">'</span><span style="color:rgb(0,0,0)">;</span></pre>
<div>Best Regards,</div>
<div>Philipp<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div bgcolor="#FFFFFF"> </div>
</div>
<br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org" moz-do-not-send="true">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users" moz-do-not-send="true">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top: 1px solid #D3D4DE;">
<tbody>
<tr>
<td style="width: 55px; padding-top: 18px;"><a
href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient"
target="_blank" moz-do-not-send="true"><img
src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif"
alt="" style="width: 46px; height: 29px;"
moz-do-not-send="true" width="46" height="29"></a></td>
<td style="width: 470px; padding-top: 17px; color:
#41424e; font-size: 13px; font-family: Arial, Helvetica,
sans-serif; line-height: 18px;">Libre de virus. <a
href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient"
target="_blank" style="color: #4453ea;"
moz-do-not-send="true">www.avast.com</a> </td>
</tr>
</tbody>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1"
height="1" moz-do-not-send="true"> </a></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-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>
<br>
</body>
</html>