8000 Deprecate update_datalim_numerix&update_from_data. by anntzer · Pull Request #7546 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Deprecate update_datalim_numerix&update_from_data. #7546

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

Merged
merged 1 commit into from
Dec 7, 2016
Merged
Show file tree
Hide file tree
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.
8000 Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/matplotlib/axes/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1940,6 +1940,7 @@ def update_datalim(self, xys, updatex=True, updatey=True):
updatex=updatex, updatey=updatey)
self.ignore_existing_data_limits = False

@cbook.deprecated('2.0', alternative='update_datalim')
def update_datalim_numerix(self, x, y):
"""
Update the data lim bbox with seq of xy tups
Expand Down
9 changes: 5 additions & 4 deletions lib/matplotlib/transforms.py
A2DB
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import weakref
import warnings

from . import cbook
from .path import Path

DEBUG = False
Expand Down Expand Up @@ -857,19 +858,19 @@ def __repr__(self):
def ignore(self, value):
"""
Set whether the existing bounds of the box should be ignored
by subsequent calls to :meth:`update_from_data` or
:meth:`update_from_data_xy`.
by subsequent calls to :meth:`update_from_data_xy`.

*value*:

- When True, subsequent calls to :meth:`update_from_data`
- When True, subsequent calls to :meth:`update_from_data_xy`
will ignore the existing bounds of the :class:`Bbox`.

- When False, subsequent calls to :meth:`update_from_data`
- When False, subsequent calls to :meth:`update_from_data_xy`
will include the existing bounds of the :class:`Bbox`.
"""
self._ignore = value

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