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

Skip to content

use Qt window title as default savefig filename #908

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 9, 2012
Prev Previous commit
Next Next commit
maintain compatibility with unimplemented backends
  • Loading branch information
mspacek committed Jul 5, 2012
commit 3b19a1542b81c84a1e81e02431a78db2aae6b6fc
8 changes: 4 additions & 4 deletions lib/matplotlib/backend_bases.py
Original file line number Diff line number Diff line change
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