File size: 1,408 Bytes
a67ae61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import plotly.graph_objects as go
import numpy as np

# Helix equation
t = np.linspace(0, 10, 50)
x, y, z = np.cos(t), np.sin(t), t

fig = go.Figure(data=[go.Scatter3d(x=x, y=y, z=z,
                                   mode='markers')])

fig.update_layout(  
            title= "title",
            title_x=0.5,
            
            # plotlyexpress 3d axes:
            scene = dict(
                xaxis = dict(
                    showbackground = False,
                    showticklabels  = False,    
                    title='',
                    showgrid = False,
                    zeroline = False,),
                yaxis = dict(
                    showbackground = False,
                    showticklabels  = False,
                    title='',
                    showgrid = False,
                    zeroline = False,),
                zaxis = dict(
                    showbackground = False,
                    showticklabels  = False,
                    title='',
                    showgrid = False,
                    zeroline = False,
                ),
                    ), 
            template= 'plotly_dark'
            # template= 'plotly'
        )

fig.write_html("./test.html", 
               div_id= "plt_Div",
               include_plotlyjs = "cdn")

div_Rep = fig.to_html(div_id= "plt_Div",
                      include_plotlyjs = "cdn")
print("debug-stop")