Philipp,
Thanks! That's the reason indeed!
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.
Probably 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.
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
Regards,
Federico
On 15/07/2021 04:02, P M wrote:
Hi Federico,
my best guess: In your example only subplot(4,1,4) gets the x_label
Since this needs space, the diagram is smaller.
Workaround: create label for x-axis via xstring
Or:
Assign a x_label for each subplot, but hide it.
This will assign "space" for the label, but it won't be
displayed...hence all diagrams should look the same...
x = linspace(0,2*%pi,1000)
y = sin(x)
f = figure();
f.background = 8;
for i = 1:4
subplot(4,1,i)
plot(x,y);
a = gca();
a.x_label.text = 't';
a.x_label.visible = 'off';
end
a.x_label.visible = 'on';
Best Regards,
Philipp
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
--
El software de antivirus Avast ha analizado este correo electrónico en busca de
virus.
https://www.avast.com/antivirus
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users