Open amine-aboufirass opened 8 months ago
Can you try this in a notebook but with a different interactive backend? To achieve this use %matplotlib qt
in place of the %matplotlib widget
, you will also need to remove the ioff
or call plt.show()
I suspect that what you are experiencing is the confusing interactions with how the toolbar updates it's memory of axis limits rather than a bug in ipympl
I'm using
ipywidgets
along withmatplotlib
in Jupyter Lab and stumbled across some strange behavior. Here's an example of the code:The steps I carry out are as follows:
b
from dropdowna
from dropdownInstead of snapping the plot extents back to what they are set for choice
a
, I instead get the following:Where it looks like
matplotlib
has indeed plotted the data[1,2,3]
, but somehow failed to update the axis limits based on that data.I really hope this isn't a bug, and that I'm doing something wrong. Has anyone seen this behavior before?