X Tutup
Skip to content
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.
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
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
X Tutup