Commit 7a36654a authored by LIGNEUL CLEMENT's avatar LIGNEUL CLEMENT
Browse files

adjust 3d plot

parent 21bc3e3c
......@@ -19,8 +19,30 @@ fig = px.scatter_3d(
df, x="f1", y="f2", z="f3", color="f2", size="f3", size_max=18, opacity=0.7
)
# tight layout
fig.update_layout(margin=dict(l=0, r=0, b=0, t=0))
fig.update_layout(
title="Results",
margin=dict(l=65, r=0, b=10, t=90),
scene=dict(
xaxis=dict(
backgroundcolor="rgb(200,200,255)",
gridcolor="white",
showbackground=True,
zerolinecolor="white",
),
yaxis=dict(
backgroundcolor="rgb(200,200,255)",
gridcolor="white",
showbackground=True,
zerolinecolor="white",
),
zaxis=dict(
backgroundcolor="rgb(200,200,255)",
gridcolor="white",
showbackground=True,
zerolinecolor="white",
),
),
)
fig.write_html("plotting/fig.html")
......
......@@ -59,7 +59,6 @@ export class Plot_result {
this.image_label.setText('Error : plot script not found');
console.log('Error : plot script not found');
}
console.log('ok');
}
if (isNaN(nb_gen)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment