Multiple Subplots

i have a problem with plotting multiple subplots , causing to show x and y axis with newaxces even if off and no on the same bases.
How to correct the axes?

M.f.G. Pascal

Here is the code
PICV.sci (20.9 KB)

Hello,

You forgot to specify the newly created axes b as first parameter of the subsequent plot call and the further reference to gca() is in fact b:

b=newaxes();
plot(b,Dial,dpmin);
b.x_location ="bottom";
b.y_location ="right";
b.filled="off";
b.axes_bounds = a.axes_bounds;
b.data_bounds=[min(Dial),min(dpmin);max(Dial),max(dpmin)]
b.axes_visible=["off","on","off"]
b.children.children(1).thickness=2;
b.children.children(1).foreground=13;
ylabel("$dpmin\ [kPa]$","fontsize",2);

S.

i have done this but on my windows laptop it is still messy, what do i have not seen?
PICV.sci (23.9 KB)

all the axes adjustments have to be done after the plot, like I did above.

S.

Done, but still some deviations of axes on my laptop with windows 11
PICV.sci (24.1 KB)

now it is good, do not know, some how something else has interrupted the process. Many thanks?

But now i see that margins are not exact

You are right, I have created an issue: Axes limits are incorrectly computed when axes_visible is off (#17449) · Issues · scilab / scilab · GitLab

1 Like