From 496fa50e9babcdcca995777a356a8a2ba92d7b6b Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson Date: Wed, 20 Jul 2022 22:21:21 +0200 Subject: [PATCH] Deprecate properties w_xaxis, w_yaxis, and w_zaxis --- doc/api/next_api_changes/deprecations/23455-OG.rst | 5 +++++ lib/mpl_toolkits/mplot3d/axes3d.py | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 doc/api/next_api_changes/deprecations/23455-OG.rst diff --git a/doc/api/next_api_changes/deprecations/23455-OG.rst b/doc/api/next_api_changes/deprecations/23455-OG.rst new file mode 100644 index 000000000000..826aef546a16 --- /dev/null +++ b/doc/api/next_api_changes/deprecations/23455-OG.rst @@ -0,0 +1,5 @@ +``w_xaxis``, ``w_yaxis``, and ``w_zaxis`` of ``Axis3D`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +... have been pending deprecation since 3.1. They are now deprecated. +Instead use ``xaxis``, ``yaxis``, and ``zaxis``. diff --git a/lib/mpl_toolkits/mplot3d/axes3d.py b/lib/mpl_toolkits/mplot3d/axes3d.py index d50ad5235ccd..15c628429e5e 100644 --- a/lib/mpl_toolkits/mplot3d/axes3d.py +++ b/lib/mpl_toolkits/mplot3d/axes3d.py @@ -225,11 +225,11 @@ def get_zaxis(self): get_zgridlines = _axis_method_wrapper("zaxis", "get_gridlines") get_zticklines = _axis_method_wrapper("zaxis", "get_ticklines") - w_xaxis = _api.deprecated("3.1", alternative="xaxis", pending=True)( + w_xaxis = _api.deprecated("3.1", alternative="xaxis", removal="3.8")( property(lambda self: self.xaxis)) - w_yaxis = _api.deprecated("3.1", alternative="yaxis", pending=True)( + w_yaxis = _api.deprecated("3.1", alternative="yaxis", removal="3.8")( property(lambda self: self.yaxis)) - w_zaxis = _api.deprecated("3.1", alternative="zaxis", pending=True)( + w_zaxis = _api.deprecated("3.1", alternative="zaxis", removal="3.8")( property(lambda self: self.zaxis)) def unit_cube(self, vals=None): pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy