It seems to be impossible to add ‘x’ or ‘unified x’ style-like hover to this plot, is there workaround or mayby other kind of plot allows replicate this plot ? (also - setting standoff of axis labels as argument of layout seems does not work when scene is in use)
import plotly.graph_objects as go
import numpy as np
# fig.layout.xaxis.title.standoff = 20 # seems to does not work, but gives no error
# fig.update_scenes(hovermode=['closest', False][0]) # only this two otpions seems to be allowed
ticktext = ["tick labels X"] * 3
layout = go.Layout(
scene = dict(
xaxis = dict(
title=dict(text='xaxis'
),
tickvals=list(range(len(ticktext))),
ticktext=ticktext,
),
yaxis = dict(
title='yaxis',
tickvals=list(range(len(ticktext))),
ticktext=ticktext,
),
zaxis = dict(
title='zaxis',
)
),
)
# chart
data = np.array([[1,2,3],[3,1,2],[3,1,2]])
plotly_input_data = []
plotly_input_data.append(go.Surface(z = data + 1, showscale=False, opacity=0.9))
plotly_input_data.append(go.Surface(z = data**2-6, showscale=False, opacity=1.0))
fig = go.Figure(data=plotly_input_data, layout = layout)
fig.layout.xaxis.title.standoff = 20 # seems to does not work, but gives no error
fig.show()