We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e9db06a + 50f4da5 commit 7d6f355Copy full SHA for 7d6f355
lib/matplotlib/backend_bases.py
@@ -2233,15 +2233,15 @@ def get_window_title(self):
2233
Return the title text of the window containing the figure, or None
2234
if there is no window (e.g., a PS backend).
2235
"""
2236
- if self.manager:
+ if self.manager is not None:
2237
return self.manager.get_window_title()
2238
2239
def set_window_title(self, title):
2240
2241
Set the title text of the window containing the figure. Note that
2242
this has no effect if there is no window (e.g., a PS backend).
2243
2244
- if hasattr(self, "manager"):
2245
self.manager.set_window_title(title)
2246
2247
def get_default_filename(self):
0 commit comments