Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3b19a15

Browse files
committed
maintain compatibility with unimplemented backends
1 parent c090a9c commit 3b19a15

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,16 +2433,16 @@ def show_popup(self, msg):
24332433
def get_window_title(self):
24342434
"""
24352435
Get the title text of the window containing the figure.
2436-
Return None if there is no window (eg, a PS backend).
2436+
Return None for non-GUI backends (eg, a PS backend).
24372437
"""
2438-
raise NotImplementedError
2438+
return 'image'
24392439

24402440
def set_window_title(self, title):
24412441
"""
24422442
Set the title text of the window containing the figure. Note that
2443-
this has no effect if there is no window (eg, a PS backend).
2443+
this has no effect for non-GUI backends (eg, a PS backend).
24442444
"""
2445-
raise NotImplementedError
2445+
pass
24462446

24472447

24482448
class Cursors:

0 commit comments

Comments
 (0)