Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6b94dcf

Browse filesBrowse files
committed
Deprecate AxesDivider.append_axes(..., add_to_figure=True).
This was never ever used in the git history, has a simple alternative, and is consistent with 3b4d7c4 which removed the similar `add_all` from other axes_grid APIs.
1 parent 766db51 commit 6b94dcf
Copy full SHA for 6b94dcf

File tree

Expand file treeCollapse file tree

2 files changed

+5
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-0
lines changed
+4Lines 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

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/axes_grid1/axes_divider.py
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.