I am using matplotlib with tk/tkinter, following the "Embedding in Tk"
self._figure = Figure()
self._axes: matplotlib.axes.Axes = self._figure.add_subplot(111)
self._canvas = FigureCanvasTkAgg(self._figure, master=frame)
toolbar = NavigationToolbar2Tk(self._canvas, frame)
toolbar.update()
According to Tool Manager
self._figure.canvas.manager.toolmanager.remove_tool("pan")
should work, but it does not.
# self._figure.canvas does not have attribute 'manager'
As one can see in the screenshot from vs-code, FigureCanvasTkAgg does not have attribute 'manager':
How can I access the toolmanager?