8000 Merge pull request #16025 from anntzer/update_datalim_bounds · matplotlib/matplotlib@3a2589b · GitHub
[go: up one dir, main page]

Skip to content

Commit 3a2589b

Browse files
authored
Merge pull request #16025 from anntzer/update_datalim_bounds
Deprecate update_datalim_bounds.
2 parents 4ecaba5 + 93edb74 commit 3a2589b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

doc/api/next_api_changes/deprecations.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,8 @@ The following parameters do not have any effect and are deprecated:
119119
- parameter *quantize* of `.Path.cleaned()`
120120
- parameter *s* of `.AnnotationBbox.get_fontsize()`
121121
- parameter *label* of `.Tick`
122+
123+
``Axes.update_datalim_bounds``
124+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
125+
This method is deprecated. Use
126+
``ax.dataLim.set(Bbox.union([ax.dataLim, bounds]))`` instead.

lib/matplotlib/axes/_base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,6 +2099,8 @@ def update_datalim(self, xys, updatex=True, updatey=True):
20992099
updatex=updatex, updatey=updatey)
21002100
self.ignore_existing_data_limits = False
21012101

2102+
@cbook.deprecated(
2103+
"3.3", alternative="ax.dataLim.set(Bbox.union([ax.dataLim, bounds]))")
21022104
def update_datalim_bounds(self, bounds):
21032105
"""
21042106
Extend the `~.Axes.datalim` Bbox to include the given

0 commit comments

Comments
 (0)
0