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
NavigationToolbar2TkAgg class was deprecated in version 2.2. In newer mpl versions, NavigationToolbar2Tk works exactly the same as NavigationToolbar2TkAgg, so it could be used a hack like the following:
try:
from matplotlib.backends.backend_tkagg import NavigationToolbar2TkAgg
except ImportError:
from matplotlib.backends.backend_tkagg import NavigationToolbar2Tk as NavigationToolbar2TkAgg
that would support both older matplotlib versions and newer ones.
NavigationToolbar2TkAgg-> NavigationToolbar2Tk for gui.py
The text was updated successfully, but these errors were encountered: