Skip to content

Commit 93edb74

Browse files
committed
Deprecate update_datalim_bounds.
This method was introduced in 56d43e6 with a note that it would be more efficient to use it in some cases, then the note went away in ad74c3f (2008) without the method ever being used either before or after. In any case, it is simple enough to be reimplemented (possibly inline) if we really need it.
1 parent 4ecaba5 commit 93edb74

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)