From 491cce313376edd3a81831f4eec3b57ab0ef77bf Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Sat, 25 Jun 2016 21:51:49 -0700 Subject: [PATCH] Deprecate update_datalim_numerix&update_from_data. There's been a warning on the latter since 2007. --- lib/matplotlib/axes/_base.py | 1 + lib/matplotlib/transforms.py | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) 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