I asked this question here but the problem might be python specific.
How do I remove the coordinate projections on hover for a surface in python plotly? According to the reference, I thought the following would do it, but they still appear.
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)
@bob It seems that you want to remove the coordinates displayed on hover.
If this is the case, insert hoverinfo='none'in the surf definition: surf = go.Surface(x=xg, y=y, z=z, hoverinfo='none', opacity=0.7)
@empet Thank you for your reply. However, that is not what Iβm interested in. Iβm interested in the black lines present in the surface and their projections into the ambient coordinate system, as pictured here: