我正在尝试使用Plotly来完全连接轴(例如,当移动任何绘图时,所有绘图都应该在两个方向上移动)。这可能吗?当我尝试链接多个轴时,我会得到重叠的图 - 这是基于在Plotly中实现链接平移的方式。
import plotly.offline as py
import plotly.graph_objs as go
from plotly import tools
fig = tools.make_subplots(rows=2, cols=2,shared_xaxes=True,shared_yaxes=True)
fig.append_trace(go.Scatter(x=[1,2,3], y=[2,1,2]), 1, 1)
fig.append_trace(go.Scatter(x=[5,6,7], y=[2,1,2]), 1, 2)
fig.append_trace(go.Scatter(x=[8,9,10], y=[2,1,2]), 2, 1)
fig.append_trace(go.Scatter(x=[11,12,13], y=[2,1,2]), 2, 2)
fig['data'][1]['xaxis'] = 'x1'
py.plot(fig)