From 3b90b1e7f73d29ef26c59fb27e5cd9b7426bd824 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Sun, 22 Dec 2019 14:07:45 +0100 Subject: [PATCH] De-deprecate *min/*max parameters to set_x/y/zlim() --- doc/api/next_api_changes/deprecations.rst | 6 ++++++ lib/mpl_toolkits/mplot3d/axes3d.py | 12 ------------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/doc/api/next_api_changes/deprecations.rst b/doc/api/next_api_changes/deprecations.rst index a1d3efbad59c..a732a2806abb 100644 --- a/doc/api/next_api_changes/deprecations.rst +++ b/doc/api/next_api_changes/deprecations.rst @@ -67,3 +67,9 @@ This attribute is unused and deprecated. ``widgets.TextBox.params_to_disable`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This attribute is deprecated. + +Revert deprecation \*min, \*max keyword arguments to ``set_x/y/zlim_3d()`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +These keyword arguments were deprecated in 3.0, alongside with the respective +parameters in ``set_xlim()`` / ``set_ylim()``. The deprecations of the 2D +versions were already reverted in in 3.1. diff --git a/lib/mpl_toolkits/mplot3d/axes3d.py b/lib/mpl_toolkits/mplot3d/axes3d.py index f532c4f5fde5..20a89215d58e 100644 --- a/lib/mpl_toolkits/mplot3d/axes3d.py +++ b/lib/mpl_toolkits/mplot3d/axes3d.py @@ -578,14 +578,10 @@ def set_xlim3d(self, left=None, right=None, emit=True, auto=False, if right is None and np.iterable(left): left, right = left if xmin is not None: - cbook.warn_deprecated('3.0', name='`xmin`', - alternative='`left`', obj_type='argument') if left is not None: raise TypeError('Cannot pass both `xmin` and `left`') left = xmin if xmax is not None: - cbook.warn_deprecated('3.0', name='`xmax`', - alternative='`right`', obj_type='argument') if right is not None: raise TypeError('Cannot pass both `xmax` and `right`') right = xmax @@ -636,14 +632,10 @@ def set_ylim3d(self, bottom=None, top=None, emit=True, auto=False, if top is None and np.iterable(bottom): bottom, top = bottom if ymin is not None: - cbook.warn_deprecated('3.0', name='`ymin`', - alternative='`bottom`', obj_type='argument') if bottom is not None: raise TypeError('Cannot pass both `ymin` and `bottom`') bottom = ymin if ymax is not None: - cbook.warn_deprecated('3.0', name='`ymax`', - alternative='`top`', obj_type='argument') if top is not None: raise TypeError('Cannot pass both `ymax` and `top`') top = ymax @@ -695,14 +687,10 @@ def set_zlim3d(self, bottom=None, top=None, emit=True, auto=False, if top is None and np.iterable(bottom): bottom, top = bottom if zmin is not None: - cbook.warn_deprecated('3.0', name='`zmin`', - alternative='`bottom`', obj_type='argument') if bottom is not None: raise TypeError('Cannot pass both `zmin` and `bottom`') bottom = zmin if zmax is not None: - cbook.warn_deprecated('3.0', name='`zmax`', - alternative='`top`', obj_type='argument') if top is not None: raise TypeError('Cannot pass both `zmax` and `top`') top = zmax
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: