Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix typo in object-oriented API #1201

Merged
merged 1 commit into from

3 participants

@dmcdougall
Collaborator

Addresses the typo in the GTKAgg backend in #1125.

@dmcdougall
Collaborator

Good spot, @jenshnielsen.

@mdboom mdboom merged commit 04ab292 into from
@travisbot

This pull request fails (merged a92b8d3 into f3ccff3).

@efiring efiring referenced this pull request from a commit in efiring/matplotlib
@efiring efiring revert PR #1125 and #1201
The attempt to make OO use easier broke the Tkagg and Wx* backends.
b0807ae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 4, 2012
  1. @dmcdougall
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/matplotlib/backends/backend_gtkagg.py
View
3  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
Something went wrong with that request. Please try again.