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

Skip to content

Updated offsetbox.py #26880

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions lib/matplotlib/offsetbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ def get_offset(self, *args, **kwargs):
return meth(params["self"], bbox, params["renderer"])
return get_offset


@_api.deprecated("3.7", alternative='patches.bbox_artist')
def bbox_artist(*args, **kwargs):
if DEBUG:
mbbox_artist(*args, **kwargs)
Expand Down Expand Up @@ -366,7 +364,6 @@ def get_bbox(self, renderer):
bbox, offsets = self._get_bbox_and_child_offsets(renderer)
return bbox

@_api.deprecated("3.7", alternative="get_bbox and child.get_offset")
def get_extent_offsets(self, renderer):
"""
Update offset of the children and return the extent of the box.
Expand All @@ -386,7 +383,6 @@ def get_extent_offsets(self, renderer):
bbox, offsets = self._get_bbox_and_child_offsets(renderer)
return bbox.width, bbox.height, -bbox.x0, -bbox.y0, offsets

@_api.deprecated("3.7", alternative="get_bbox")
def get_extent(self, renderer):
"""Return a tuple ``width, height, xdescent, ydescent`` of the box."""
bbox = self.get_bbox(renderer)
Expand Down