Plotting layout problem with xaxis

Hi,

I am trying to plot two figures in a layout.

layout is set to layout = (2,1), and I got a problem with xaxis.

the top of xaxis appears in the bottom figure. Is there any way to fix this?

Thank you.

Hi,
are you using Plots.jl with the gr backend?
You could try to increase the bottom margin:
plot(p1,p2,layout=(2,1),bottom_margin=20Plots.mm)

1 Like

I am currently using plotlyjs.

It seems to be solved with the gr backend without any modification.

Is there any solution for the plotlyjs?

Thank you for your reply.

There seems to be an open issue on this.
The workaround being to plot in a browser window via the plotly() backend instead of an electron window with plotlyjs()