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

Skip to content

Commit a08e334

Browse files
authored
Merge pull request #20065 from anntzer/atf
Deprecate AxesDivider.append_axes(..., add_to_figure=True).
2 parents ff8ba56 + 6b94dcf commit a08e334

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+
``AxesDivider.append_axes(..., add_to_figure=False)``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
... is deprecated. Use ``ax.remove()`` to remove the Axes from the figure if
4+
needed.

lib/mpl_toolkits/axes_grid1/axes_divider.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,7 @@ def new_vertical(self, size, pad=None, pack_start=False, **kwargs):
525525
ax.set_axes_locator(locator)
526526
return ax
527527

528+
@_api.delete_parameter("3.5", "add_to_figure", alternative="ax.remove()")
528529
def append_axes(self, position, size, pad=None, add_to_figure=True,
529530
**kwargs):
530531
"""

0 commit comments

Comments
 (0)