Skip to content

Commit e26f544

Browse files
authored
Merge pull request #19176 from anntzer/3dkw
Deprecate additional positional args to plot_{surface,wireframe}.
2 parents d45dcef + e07e3a4 commit e26f544

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Extra positional parameters to ``plot_surface`` and ``plot_wireframe``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
Positional parameters to `~.axes3d.Axes3D.plot_surface` and
4+
`~.axes3d.Axes3D.plot_wireframe` other than ``X``, ``Y``, and ``Z`` are
5+
deprecated. Pass additional artist properties as keyword arguments instead.

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,6 +1551,7 @@ def plot(self, xs, ys, *args, zdir='z', **kwargs):
15511551

15521552
plot3D = plot
15531553

1554+
@_api.delete_parameter("3.4", "args", alternative="kwargs")
15541555
def plot_surface(self, X, Y, Z, *args, norm=None, vmin=None,
15551556
vmax=None, lightsource=None, **kwargs):
15561557
"""
@@ -1822,6 +1823,7 @@ def norm(x):
18221823

18231824
return colors
18241825

1826+
@_api.delete_parameter("3.4", "args", alternative="kwargs")
18251827
def plot_wireframe(self, X, Y, Z, *args, **kwargs):
18261828
"""
18271829
Plot a 3D wireframe.

0 commit comments

Comments
 (0)