8000 MNT: Remove get/set window title methods from FigureCanvas · matplotlib/matplotlib@0e541df · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e541df

Browse files
committed
MNT: Remove get/set window title methods from FigureCanvas
This is the removal after the deprecation period.
1 parent 037fcca commit 0e541df

File tree

2 files changed

+5
-20
lines changed

2 files changed

+5
-20
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Get/set window title methods have been removed from the canvas
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
Use the corresponding methods on the FigureManager if using pyplot,
5+
or GUI-specific methods if embedding.

lib/matplotlib/backend_bases.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2307,26 +2307,6 @@ def get_default_filetype(cls):
23072307
"""
23082308
return rcParams['savefig.format']
23092309

2310-
@_api.deprecated("3.4", alternative="`.FigureManagerBase.get_window_title`"
2311-
" or GUI-specific methods")
2312-
def get_window_title(self):
2313-
"""
2314-
Return the title text of the window containing the figu 8000 re, or None
2315-
if there is no window (e.g., a PS backend).
2316-
"""
2317-
if self.manager is not None:
2318-
return self.manager.get_window_title()
2319-
2320-
@_api.deprecated("3.4", alternative="`.FigureManagerBase.set_window_title`"
2321-
" or GUI-specific methods")
2322-
def set_window_title(self, title):
2323-
"""
2324-
Set the title text of the window containing the figure. Note that
2325-
this has no effect if there is no window (e.g., a PS backend).
2326-
"""
2327-
if self.manager is not None:
2328-
self.manager.set_window_title(title)
2329-
23302310
def get_default_filename(self):
23312311
"""
23322312
Return a string, which includes extension, suitable for use as

0 commit comments

Comments
 (0)
0