diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index 6b14ebe78d66..6f702b0816d9 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -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 diff --git a/lib/matplotlib/transforms.py b/lib/matplotlib/transforms.py index fca485d2a182..b105a11121a3 100644 --- a/lib/matplotlib/transforms.py +++ b/lib/matplotlib/transforms.py @@ -42,6 +42,7 @@ import weakref import warnings +from . import cbook from .path import Path DEBUG = False @@ -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