There was an error while loading. Please reload this page.
1 parent 757fb24 commit 05f1260Copy full SHA for 05f1260
2 files changed
examples/user_interfaces/embedding_in_gtk3_sgskip.py
@@ -34,7 +34,7 @@
34
35
canvas = FigureCanvas(fig) # a Gtk.DrawingArea
36
canvas.set_size_request(800, 600)
37
-sw.add_with_viewport(canvas)
+sw.add(canvas)
38
39
win.show_all()
40
Gtk.main()
examples/user_interfaces/mpl_with_glade3_sgskip.py
@@ -42,7 +42,7 @@ def main():
42
43
canvas = FigureCanvas(figure) # a Gtk.DrawingArea
44
45
- sw.add_with_viewport(canvas)
+ sw.add(canvas)
46
# End of Matplotlib specific code
47
48
window.show_all()
0 commit comments