Hi there,
So I am currently trying to use PlotlyJS for my plots.
I am running the following code
using PlotlyJS
np = pyimport("numpy")
function main()
trace1 = scatter(; x = rand(100), y = rand(100),
mode="markers",
name="linear")
trace2 = scatter(;#x = height_potential_fluorescence[:, 2],
x = rand(100), y = rand(100),
mode="markers",
name="linear",
textposition="top center")
trace3 = scatter(
y = rand(100), x = rand(100),
mode="markers",
name="linear",
textposition="top center",
)
trace4 = scatter3d(
z = rand(100), x = rand(100), y = rand(100),
mode="markers",
name="linear",
textposition="top center",
)
p=make_subplots(
rows=2, cols=2,
row_heights=[0.5, 0.5],
specs=[
Spec(kind="xy") Spec(kind="xy")
Spec(kind="xy") Spec(kind="scene")
]
)
add_trace!(p, trace1, row=1, col=1)
add_trace!(p, trace2, row=1, col=2)
add_trace!(p, trace3, row=2, col=1)
add_trace!(p, trace4, row=2, col=2)
relayout!(p, height=1300, width=1500, title_text="specs examples", showlegend=false,vertical_spacing=0., horizontal_spacing=0. )
p
end
GC.gc()
@time height_potential_fluorescence = main()
.
Even though I set both vertical_spacing=0. and horizontal_spacing=0. the spaces between the plots is still quite large. Does anyone now how to reduce this spacing?
All help appreciated!
The output is somthing like this