Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c1aed1

Browse files
authored
Merge pull request #26798 from oscargus/axes3dremovals
Remove deprecated methods and attributed in Axes3D
2 parents 258dd85 + 10d9f7b commit 9c1aed1

File tree

3 files changed

+9
-25
lines changed

3 files changed

+9
-25
lines changed
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.

doc/api/toolkits/mplot3d/axes3d.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,6 @@ Aliases and deprecated methods
267267
set_zlim3d
268268
stem3D
269269
text3D
270-
tunit_cube
271-
tunit_edges
272-
unit_cube
273270

274271

275272
Other

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 0 additions & 22 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]),
@@ -943,11 +926,6 @@ def get_proj(self):
943926
# towards the middle of the box of data from a distance:
944927
eye = R + self._dist * ps
945928

946-
# vvec, self._vvec and self._eye are unused, remove when deprecated
947-
vvec = R - eye
948-
self._eye = eye
949-
self._vvec = vvec / np.linalg.norm(vvec)
950-
951929
# Calculate the viewing axes for the eye position
952930
u, v, w = self._calc_view_axes(eye)
953931
self._view_u = u # _view_u is towards the right of the screen

0 commit comments

Comments
 (0)