Permalink
Browse files

Fix typo in object-oriented API

  • Loading branch information...
dmcdougall committed Sep 4, 2012
1 parent f3ccff3 commit a92b8d3aafa0cdeea0a2e9a754b55f9a10bd6cbe
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/matplotlib/backends/backend_gtkagg.py
@@ -33,7 +33,6 @@ def _get_toolbar(self, canvas):
toolbar = None
return toolbar
-FigureCanvas = FigureManagerGTKAgg
def new_figure_manager(num, *args, **kwargs):
"""
@@ -112,6 +111,8 @@ def print_png(self, filename, *args, **kwargs):
agg = self.switch_backends(FigureCanvasAgg)
return agg.print_png(filename, *args, **kwargs)
+FigureCanvas = FigureCanvasGTKAgg
+
"""\
Traceback (most recent call last):
File "/home/titan/johnh/local/lib/python2.3/site-packages/matplotlib/backends/backend_gtk.py", line 304, in expose_event

0 comments on commit a92b8d3

Please sign in to comment.