The following code plots two subplots side-by-side. Works fine if you are using the gr backend but does not when using the plotlyjs backend. The first subplot spreads across the whole figure while the second subplot is positioned correctly and consequently hides half of the first subplot.
using Plots
l = @layout [a b]
for backend in [gr, plotlyjs]
backend()
p1 = plot(rand(10,2),seriestype=[:bar :scatter],layout=l)
gui(p1)
end
Attached is a screenshot of how the plotlyjs version looks.
However, if you use savefig and then look at the saved file, the plotlyjs version now looks correct. So it appears the problem is only in the visual display.
Any help with this? I’m using julia 1.10.5.