Python 如何在plotly中在三维曲面上绘制边线?

Python 如何在plotly中在三维曲面上绘制边线?,python,plotly,plotly-python,Python,Plotly,Plotly Python,我有一个由一些凸点组成的三维曲面。我的代码如下所示: hull = scipy.spatial.ConvexHull(coordinates) #coordinates are 3d array of needed coordinates polyhedra_points = hull.vertices.tolist() coordinates_all = result_fin[['Teta_N', 'Teta_V', 'Teta_chi']].to_numpy() #result_fi

我有一个由一些凸点组成的三维曲面。我的代码如下所示:

  
hull = scipy.spatial.ConvexHull(coordinates) #coordinates are 3d array of needed coordinates

polyhedra_points = hull.vertices.tolist()
coordinates_all = result_fin[['Teta_N', 'Teta_V', 'Teta_chi']].to_numpy() #result_fin is dataframe with all coordinates
polyhedra_coordinates = coordinates_all[polyhedra_points]


fig = go.Figure(data=[go.Scatter3d(x=result_fin.Teta_N, y=result_fin.Teta_V, z=result_fin.Teta_chi, mode='markers', marker=dict(size = 5, color = 'blue'))])

   
fig.add_trace(go.Mesh3d(x=polyhedra_coordinates[:, 0], 
                        y=polyhedra_coordinates[:, 1], 
                        z=polyhedra_coordinates[:, 2],
                        text = polyhedra_df.composition, #we see the names of the polyhedra points
                        color="blue",
                        name='Laves',
                        contour = dict(color = 'blue', show = True, width = 10),
                        opacity=.3,
                        alphahull=0
                       ),
             )

fig
我现在的阴谋

但我需要在上面有成型线,就像这里(这是我用3D matplotlib制作的,但它不够互动):

这里是这样做的:

ax = plt.axes(projection='3d')
  
hull = scipy.spatial.ConvexHull(coordinates)
faces = hull.simplices
polyhedra_points = hull.vertices.tolist()

for i in faces:

    tri = Poly3DCollection(coordinates[i])
    tri.set_color('blue') 
    tri.set_alpha(0.3)
    ax.add_collection3d(tri)
    
ax.scatter(xs = result_fin.Teta_N, ys= result_fin.Teta_V, zs=result_fin.Teta_chi, color = 'blue', label='laves', s = 15)
    
ax.set_xlabel(r"$\Theta_{N}$")
ax.set_ylabel(r"$\Theta_{V}$")
ax.set_zlabel(r"$\Theta_{\chi}$")
ax.legend(loc='upper center', bbox_to_anchor=(0.5, -0.05), ncol=4)
我想做的和我在第二张照片中做的一样,但是在情节上。我该怎么做