Skip to content

Commit d5681db

Browse files
author
Oscar Gustafsson
committed
Remove support for shade=None
1 parent 6eba0af commit d5681db

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,12 +1617,7 @@ def plot_surface(self, X, Y, Z, *, norm=None, vmin=None,
16171617
cmap = kwargs.get('cmap', None)
16181618
shade = kwargs.pop('shade', cmap is None)
16191619
if shade is None:
1620-
_api.warn_deprecated(
1621-
"3.1",
1622-
message="Passing shade=None to Axes3D.plot_surface() is "
1623-
"deprecated since matplotlib 3.1 and will change its "
1624-
"semantic or raise an error in matplotlib 3.3. "
1625-
"Please use shade=False instead.")
1620+
raise ValueError("shade cannot be None.")
16261621

16271622
colset = [] # the sampled facecolor
16281623
if (rows - 1) % rstride == 0 and \

0 commit comments

Comments
 (0)