[Scilab-users] Fwd: problem with subplot

P M p.muehlmann at gmail.com
Thu Jul 15 09:02:16 CEST 2021


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';enda.x_label.visible = 'on';

Best Regards,
Philipp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20210715/998f8a57/attachment.htm>


More information about the users mailing list