I am a newbie to Plotly. Is there a way to draw data lines on top of a 3D surface graph. I have managed to draw the graph but cannot figure out how to add lines to it (I have attached the target image). Kindly help. This is my code and dataset.
#!/usr/bin/env python
#import plotly.graph_objects as go
from plotly.offline import iplot, init_notebook_mode
init_notebook_mode()
import pandas as pd
import copy
z_data = pd.read_csv(âhttps://raw.githubusercontent.com/rogomichael/plotpl/master/trial.csvâ)
z2_data = pd.read_csv(âhttps://raw.githubusercontent.com/rogomichael/plotpl/master/set2.csvâ)
#surfacecolor = copy.deepcopy(z2_data)
#surfacecolor[2][2] = 0
fig = go.Figure(data=[
go.Surface(
x = [-5,-4,-3,-2,-1,0,1,2,3,4,5],
y = [-4,-3,-2,-1,0,1,2,3,4,5,6],
z=z2_data,
colorscale = âredsâ,
opacity = 1,
#colorscale=âElectricâ,
#surfacecolor=surfacecolor,
showscale=False),
go.Surface(
x = [-5,-4,-3,-2,-1,0,1,2,3,4,5],
y = [-4,-3,-2,-1,0,1,2,3,4,5,6],
z=z_data.values,
#colorscale=âaggrnylâ,
colorscale = âgreensâ,
opacity = 1,
#colorscale = [[0, âgreenâ], [-0.5, âredâ], [-1.0, ârgb(0, 0, 255)â]],
showscale=False)])
fig.update_layout(title=âch3_ciâ,
scene ={âxaxisâ:{âtitleâ: âg/NAC [Angs]â},
âyaxisâ:{âtitleâ: âh/GD [Angs]â},
âzaxisâ:{âtitleâ: âenergy/eVâ}},
autosize=True,
width=950, height=950,
margin=dict(l=65, r=50, b=65, t=120))
#fig.show()
iplot(fig, image=âsvgâ, filename=âch3_plot.svgâ)