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
{{ message }}
Repository navigation
Reset view not working in interactive TkAgg backend #9764
When using TkAgg in interactive mode, the 'reset view' and 'back to previous view' buttons do not work. However, everything works fine when I am not in interactive mode or using Qt5Agg.
Then I zoom in and click on 'reset view' / 'back to previous view' and nothing happens. This happens both in the python command line and the jupyter qt console.
fig.canvas.toolbar._views._elements is initially [] and fig.canvas.toolbar._views._pos is -1,
while in non-interactive mode or with the Qt5Agg, fig.canvas.toolbar._views._elements is not empty and fig.canvas.toolbar._views._pos is 0.
Activity
j4321 commentedon Nov 21, 2017
I have looked a little bit in this bug, and I have noticed the following:
With TkAgg in interactive mode:
fig.canvas.toolbar._views._elementsis initially[]andfig.canvas.toolbar._views._posis -1,while in non-interactive mode or with the Qt5Agg,
fig.canvas.toolbar._views._elementsis not empty andfig.canvas.toolbar._views._posis 0.QuLogic commentedon Mar 27, 2020
I believe this is fixed in 2.1.1, by #9359.