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

Skip to content

Commit 7c5c23b

Browse files
authored
Merge pull request #23666 from greglucas/macosx-dep-subplots
MNT: Deprecate macosx prepare subplots tool
2 parents c773fec + 81ff4c7 commit 7c5c23b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
The macosx backend toolbar ``prepare_configure_subplots``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
has been replaced by ``configure_subplots()``.

lib/matplotlib/backends/backend_macosx.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ def save_figure(self, *args):
132132
mpl.rcParams['savefig.directory'] = os.path.dirname(filename)
133133
self.canvas.figure.savefig(filename)
134134

135+
@_api.deprecated("3.6", alternative='configure_subplots()')
135136
def prepare_configure_subplots(self):
136137
toolfig = Figure(figsize=(6, 3))
137138
canvas = FigureCanvasMac(toolfig)

0 commit comments

Comments
 (0)