Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LIGNEUL CLEMENT
GUIDE
Commits
7a36654a
Commit
7a36654a
authored
Jul 12, 2021
by
LIGNEUL CLEMENT
Browse files
adjust 3d plot
parent
21bc3e3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/3D_plot.py
View file @
7a36654a
...
...
@@ -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"
)
...
...
src/plot_tab.ts
View file @
7a36654a
...
...
@@ -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
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment