Skip to content

Commit

Permalink
maintain compatibility with unimplemented backends
Browse files Browse the repository at this point in the history
  • Loading branch information
mspacek committed Jul 5, 2012
1 parent c090a9c commit 3b19a15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/matplotlib/backend_bases.py
Expand Up @@ -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:
Expand Down

0 comments on commit 3b19a15

Please sign in to comment.