Trace lines appearing on hover

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)