Skip to content
Advertisement

Dash+Plotly Synchronize zoom and pan between two plots using imshow

I try to synchronize zoom and pan between two graphs in a dashboard (dash + plotly). I obtain strange behavior when I zoom on a graph, the second graph does not update. I need to zoom on the second graph to make both graphs update but not with the same zoom nor the same location on the graphs. Furthermore the shapes of the two graphs change.

Below is the code I am in. I do not see I am doing wrong.

JavaScript

Advertisement

Answer

I found a solution : rather than creating two graphs, I created a graph with several subplots and force zoom and pan between subplots.

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement