Trace lines appearing on hover

Hello! I’m trying to create a 3D surface plot for a demo of a school project so I would like it to be as ‘clean’ as possible. I have removed the axis spikes and have turned off showing the nearest data set upon hovering over the surface. I would also like to remove the lines that appear over the surface when the cursor hovers over it. These lines appear perpendicular to the 3 axes and bend around the contours of the shape. Is there a simple way to remove them?

Thanks!

should do the trick.

EDIT: This is a js question, but my problem may be python specific. I’ll post elsewhere.

I apologize for reviving this old thread, but this doesn’t seem to be working as intended (at least not for me). I also want to remove the projections to the axis on hover for a surface plot. After reading the above reference, I thought the following would work but it doesn’t. Here’s a simple example of plotting a cylinder in python for which the ‘project’ attributes don’t seem to be doing anything:

import plotly
import plotly.graph_objs as go
import numpy as np

theta = np.linspace(0,2*np.pi,50) 
x = np.linspace(0,10,50) 

tg,xg = np.meshgrid(theta,x) 

y = np.cos(tg)
z = np.sin(tg)

contours = dict(
    x=dict(
            project=dict(
                    x=False,
                    y=False,
                    z=False)),
    y=dict(
            project=dict(
                    x=False,
                    y=False,
                    z=False)),
        z=dict(
                project=dict(
                        x=False,
                        y=False,
                        z=False)),
        )

surf = go.Surface(x=xg,y=y,z=z,contours=contours,opacity=0.7)
fig = go.Figure(data=[surf])
plotly.offline.plot(fig)