Closed
Description
Bug summary
The Tool Manager example doesn't work.
Code for reproduction
python toolmanager_sgskip.py
Actual outcome
-
Tools are not added:
matplotlib/examples/user_interfaces/toolmanager_sgskip.py
Lines 77 to 78 in 0c1aa86
Traceback (most recent call last):
File "C:\Programs\Python38\lib\site-packages\matplotlib\backends\backend_qt.py", line 930, in handler
self.trigger_tool(name)
File "C:\Programs\Python38\lib\site-packages\matplotlib\backend_bases.py", line 3391, in trigger_tool
self.toolmanager.trigger_tool(name, sender=self)
File "C:\Programs\Python38\lib\site-packages\matplotlib\backend_managers.py", line 379, in trigger_tool
self._trigger_tool(name, sender, canvasevent, data)
File "C:\Programs\Python38\lib\site-packages\matplotlib\backend_managers.py", line 394, in _trigger_tool
tool.trigger(sender, canvasevent, data)
File "C:\Programs\Python38\lib\site-packages\matplotlib\backends\backend_qt.py", line 970, in trigger
NavigationToolbar2QT.configure_subplots(
File "C:\Programs\Python38\lib\site-packages\matplotlib\backends\backend_qt.py", line 753, in configure_subplots
if self._subplot_dialog is None:
AttributeError: 'types.SimpleNamespace' object has no attribute '_subplot_dialog'
Expected outcome
- tools being added
- no crash
Additional information
No response
Operating system
No response
Matplotlib Version
3.5.1
Matplotlib Backend
No response
Python version
No response
Jupyter version
No response
Installation
No response