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 5338d9c

Browse filesBrowse files
committed
Merge pull request #7546 from anntzer/add-deprecation-messages
Deprecate update_datalim_numerix & update_from_data.
1 parent 462fe6d commit 5338d9c
Copy full SHA for 5338d9c

File tree

Expand file treeCollapse file tree

2 files changed

+6
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-4
lines changed

‎lib/matplotlib/axes/_base.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_base.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1953,6 +1953,7 @@ def update_datalim(self, xys, updatex=True, updatey=True):
19531953
updatex=updatex, updatey=updatey)
19541954
self.ignore_existing_data_limits = False
19551955

1956+
@cbook.deprecated('2.0', alternative='update_datalim')
19561957
def update_datalim_numerix(self, x, y):
19571958
"""
19581959
Update the data lim bbox with seq of xy tups

‎lib/matplotlib/transforms.py

Copy file name to clipboardExpand all lines: lib/matplotlib/transforms.py
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
except NameError:
4848
from sets import Set as set
4949

50+
from . import cbook
5051
from .path import Path
5152

5253
DEBUG = False
@@ -859,19 +860,19 @@ def __repr__(self):
859860
def ignore(self, value):
860861
"""
861862
Set whether the existing bounds of the box should be ignored
862-
by subsequent calls to :meth:`update_from_data` or
863-
:meth:`update_from_data_xy`.
863+
by subsequent calls to :meth:`update_from_data_xy`.
864864
865865
*value*:
866866
867-
- When True, subsequent calls to :meth:`update_from_data`
867+
- When True, subsequent calls to :meth:`update_from_data_xy`
868868
will ignore the existing bounds of the :class:`Bbox`.
869869
870-
- When False, subsequent calls to :meth:`update_from_data`
870+
- When False, subsequent calls to :meth:`update_from_data_xy`
871871
will include the existing bounds of the :class:`Bbox`.
872872
"""
873873
self._ignore = value
874874

875+
@cbook.deprecated('2.0', alternative='update_from_data_xy')
875876
def update_from_data(self, x, y, ignore=None):
876877
"""
877878
Update the bounds of the :class:`Bbox` based on the passed in

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.