You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug 🖍️
I believe this is similar to #242, which should be fixed. However I am using the latest plotly-resampler version installed by pip (0.10.0) and still experiencing the issue. #242 is also about multiple traces in a single plot (no subplots), this issue concerns specifically subplots.
When using subplots with the plotly.subplots.make_subplots function, when zooming in, only the first subplot gets dynamically resampled on zoom.
Reproducing the bug 🔍
Here is a minimal code example, to be run in Jupyter:
Expected behavior 🔧
When zooming in on the first subplot (row=1), dynamic resampling works as expected. When zooming in on the second subplot, dynamic resampling does not work. I expected dynamic resampling to work the same on all subplots.
Environment information: (please complete the following information)
OS: Windows 11
Python environment:
Python version: 3.12
plotly-resampler environment: Jupyterlab on Firefox
plotly-resampler version: 0.10.0
The text was updated successfully, but these errors were encountered:
I am able to reproduce the bug. It appears to be related to the _xaxis_list property of the FigureWidgetResampler only picking up the first xaxis (and thus not subscribing on layout changes of the second axis).
As a quick and dirty fix, I would propose to just wrap the Figure object with a FigureWidgetResampler (before you output it).
Describe the bug 🖍️
I believe this is similar to #242, which should be fixed. However I am using the latest plotly-resampler version installed by pip (0.10.0) and still experiencing the issue. #242 is also about multiple traces in a single plot (no subplots), this issue concerns specifically subplots.
When using subplots with the
plotly.subplots.make_subplots
function, when zooming in, only the first subplot gets dynamically resampled on zoom.Reproducing the bug 🔍
Here is a minimal code example, to be run in Jupyter:
Expected behavior 🔧
When zooming in on the first subplot (row=1), dynamic resampling works as expected. When zooming in on the second subplot, dynamic resampling does not work. I expected dynamic resampling to work the same on all subplots.
Environment information: (please complete the following information)
The text was updated successfully, but these errors were encountered: