8000 Remove deprecated methods and attributed in Axes3D · matplotlib/matplotlib@783635d · GitHub
[go: up one dir, main page]

Skip to content

Commit 783635d

Browse files
committed
Remove deprecated methods and attributed in Axes3D
1 parent 9b16729 commit 783635d

File tree

3 files changed

+14
-23
lines changed

3 files changed

+14
-23
lines changed
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
Removal change template
2-
~~~~~~~~~~~~~~~~~~~~~~~
1+
``unit_cube``, ``tunit_cube``, and ``tunit_edges``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33

4-
Enter description of methods/classes removed here....
5-
6-
Please rename file with PR number and your initials i.e. "99999-ABC.rst"
7-
and ``git add`` the new file.
4+
... of `.Axes3D` are deprecated without replacements. If you rely on them,
5+
please copy the code of the corresponding private function (name starting
6+
with ``_``).
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
``unit_cube``, ``tunit_cube``, and ``tunit_edges``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
... of `.Axes3D` are removed without replacements.
5+
6+
``axes3d.vvec``, ``axes3d.eye``, ``axes3d.sx``, and ``axes3d.sy``
7+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8+
9+
... are removed without replacement.

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,6 @@ class Axes3D(Axes):
5858
Axes._shared_axes["z"] = cbook.Grouper()
5959
Axes._shared_axes["view"] = cbook.Grouper()
6060

61-
vvec = _api.deprecate_privatize_attribute("3.7")
62-
eye = _api.deprecate_privatize_attribute("3.7")
63-
sx = _api.deprecate_privatize_attribute("3.7")
64-
sy = _api.deprecate_privatize_attribute("3.7")
65-
6661
def __init__(
6762
self, fig, rect=None, *args,
6863
elev=30, azim=-60, roll=0, sharez=None, proj_type='persp',
@@ -227,10 +222,6 @@ def get_zaxis(self):
227222
get_zgridlines = _axis_method_wrapper("zaxis", "get_gridlines")
228223
get_zticklines = _axis_method_wrapper("zaxis", "get_ticklines")
229224

230-
@_api.deprecated("3.7")
231-
def unit_cube(self, vals=None):
232-
return self._unit_cube(vals)
233-
234225
def _unit_cube(self, vals=None):
235226
minx, maxx, miny, maxy, minz, maxz = vals or self.get_w_lims()
236227
return [(minx, miny, minz),
@@ -242,21 +233,13 @@ def _unit_cube(self, vals=None):
242233
(maxx, maxy, maxz),
243234
(minx, maxy, maxz)]
244235

245-
@_api.deprecated("3.7")
246-
def tunit_cube(self, vals=None, M=None):
247-
return self._tunit_cube(vals, M)
248-
249236
def _tunit_cube(self, vals=None, M=None):
250237
if M is None:
251238
M = self.M
252239
xyzs = self._unit_cube(vals)
253240
tcube = proj3d._proj_points(xyzs, M)
254241
return tcube
255242

256-
@_api.deprecated("3.7")
257-
def tunit_edges(self, vals=None, M=None):
258-
return self._tunit_edges(vals, M)
259-
260243
def _tunit_edges(self, vals=None, M=None):
261244
tc = self._tunit_cube(vals, M)
262245
edges = [(tc[0], tc[1]),

0 commit comments

Comments
 (0)
0