Closed TomPCurran closed 6 years ago
Are you adding a surface or mesh layer? There is a difference between the two
its a meshlayer I believe
My Code:
plot = go.Mesh3d(
x = x,
y = y,
z = z,
opacity = 1,
color = "rgb(39, 100, 0)"
)
layout = go.Layout(
scene = dict(
xaxis = dict(title="Age"),
yaxis = dict(title="Education"),
zaxis = dict(title="Biden")),
width=700)
fig = go.Figure(data = [plot], layout = layout)
py.iplot(fig)
and the example I am using from plotly API: https://plot.ly/python/3d-axes/
Fixed,
Had to convert x y and z to np arrays
I am trying to create a surface plot for the interaction terms for question 2 using python and plotly and I can get the axis to show up but the data itself will not render. I also tried this in R and ran into the same issue.
Suggestions?