Python 3.x 向同一方向绘图移动子地块
我正在用两个场景编写一个代码,但我想在拖动其中一个场景时同时移动它们。我该怎么做 这是一个代码示例,但它对我的要求没有用处。我只想能够同时移动两个Python 3.x 向同一方向绘图移动子地块,python-3.x,plotly,subplot,Python 3.x,Plotly,Subplot,我正在用两个场景编写一个代码,但我想在拖动其中一个场景时同时移动它们。我该怎么做 这是一个代码示例,但它对我的要求没有用处。我只想能够同时移动两个 fig = make_subplots( rows=1, cols=2, specs=[[{"type": "scene"}, {"type": "scene"}]]) fig.add_scatter3d(x = [1,2,3], y = [1,2,3]
fig = make_subplots(
rows=1, cols=2,
specs=[[{"type": "scene"}, {"type": "scene"}]])
fig.add_scatter3d(x = [1,2,3], y = [1,2,3], z = [1,2,3], mode='lines',
name="Border 1",
line=dict(
width=8,
color='goldenrod',
), row=1, col=1)
fig.add_scatter3d(x = [3,2,1], y = [3,2,1], z = [1,2,3], mode='lines',
name="Border 4",
line=dict(
width=8,
color='mediumseagreen',
), row=1, col=2)
fig.update_scenes(aspectmode='cube')
fig.show()