Permalink
Browse files

maintain compatibility with unimplemented backends

  • Loading branch information...
mspacek committed Jun 4, 2012
1 parent c090a9c commit 3b19a1542b81c84a1e81e02431a78db2aae6b6fc
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/matplotlib/backend_bases.py
@@ -2433,16 +2433,16 @@ def show_popup(self, msg):
def get_window_title(self):
"""
Get the title text of the window containing the figure.
- Return None if there is no window (eg, a PS backend).
+ Return None for non-GUI backends (eg, a PS backend).
"""
- raise NotImplementedError
+ return 'image'
def set_window_title(self, title):
"""
Set the title text of the window containing the figure. Note that
- this has no effect if there is no window (eg, a PS backend).
+ this has no effect for non-GUI backends (eg, a PS backend).
"""
- raise NotImplementedError
+ pass
class Cursors:

0 comments on commit 3b19a15

Please sign in to comment.