8000 Deprecate set_pane_pos · matplotlib/matplotlib@5b3f43c · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b3f43c

Browse files
committed
Deprecate set_pane_pos
1 parent 9e6afd6 commit 5b3f43c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
``mplot3d.axis3d.Axis.set_pane_pos``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
... is deprecated. This is an internal function where the results are
5+
overwritten during drawing. Hence, it does not serve any purpose for a user.

lib/mpl_toolkits/mplot3d/axis3d.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,11 @@ def get_minor_ticks(self, numticks=None):
182182
obj.set_transform(self.axes.transData)
183183
return ticks
184184

185+
@_api.deprecated("3.6")
185186
def set_pane_pos(self, xys):
187+
self._set_pane_pos(xys)
188+
189+
def _set_pane_pos(self, xys):
186190
xys = np.asarray(xys)
187191
xys = xys[:, :2]
188192
self.pane.xy = xys
@@ -290,7 +294,7 @@ def draw_pane(self, renderer):
290294
else:
291295
plane = self._PLANES[2 * index + 1]
292296
xys = [tc[p] for p in plane]
293-
self.set_pane_pos(xys)
297+
self._set_pane_pos(xys)
294298
self.pane.draw(renderer)
295299

296300
renderer.close_group('pane3d')

0 commit comments

Comments
 (0)
0