I apologise to revive (again) this thread. I experience difficulties in setting the range and/or the aspect ratio of the two scenes separately. The range of the second trace is 1000 times smaller compared to the first one.
I tried something like:
fig.update_scenes(aspectratio=dict(x=1,y=1,z=1),
xaxis=dict(autorange=False, range=[-15,15], showgrid=False, zeroline=False, visible=False),
yaxis=dict(autorange=False, range=[-15,15], showgrid=False, zeroline=False, visible=False),
zaxis=dict(autorange=False, range=[-15,15], showgrid=False, zeroline=False, visible=False))
that works but obviously affects both traces. I tried to add trace[0,1]
, but I get the output
ValueError</b> : Invalid property specified for object of type plotly.graph_objs.layout.Scene: 'traces'
An issue opened on github there the use of scene2_xaxis_range
that I couldn’t find anywhere else.
very naively, I tried something like from the reference of Figure
fig.select_traces(col=1,).update_scenes(.....)
with negative results
'generator' object has no attribute 'update_scenes'
What would be the right way of proceeding?