File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
import tkinter
9
9
10
10
from matplotlib .backends .backend_tkagg import (
11
- FigureCanvasTkAgg , NavigationToolbar2TkAgg )
11
+ FigureCanvasTkAgg , NavigationToolbar2Tk )
12
12
# Implement the default Matplotlib key bindings.
13
13
from matplotlib .backend_bases import key_press_handler
14
14
from matplotlib .figure import Figure
27
27
canvas .draw ()
28
28
canvas .get_tk_widget ().pack (side = tkinter .TOP , fill = tkinter .BOTH , expand = 1 )
29
29
30
- toolbar = NavigationToolbar2TkAgg (canvas , root )
30
+ toolbar = NavigationToolbar2Tk (canvas , root )
31
31
toolbar .update ()
32
- canvas ._tkcanvas .pack (side = tkinter .TOP , fill = tkinter .BOTH , expand = 1 )
32
+ canvas .get_tk_widget () .pack (side = tkinter .TOP , fill = tkinter .BOTH , expand = 1 )
33
33
34
34
35
35
def on_key_press (event ):
You can’t perform that action at this time.
0 commit comments