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

Skip to content

Commit 303e3d5

Browse files
make depthshade_minalpha kwarg only
kwarg order
1 parent aa3f482 commit 303e3d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/mpl_toolkits/mplot3d/art3d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,8 +990,9 @@ def patch_collection_2d_to_3d(
990990
zs=0,
991991
zdir="z",
992992
depthshade=True,
993-
depthshade_minalpha=0.3,
994993
axlim_clip=False,
994+
*args,
995+
depthshade_minalpha=0.3
995996
):
996997
"""
997998
Convert a `.PatchCollection` into a `.Patch3DCollection` object
@@ -1014,7 +1015,6 @@ def patch_collection_2d_to_3d(
10141015
Sets the minimum alpha value used by depth-shading. Default: 0.3.
10151016
axlim_clip : bool, default: False
10161017
Whether to hide patches with a vertex outside the axes view limits.
1017-
10181018
"""
10191019
if isinstance(col, PathCollection):
10201020
col.__class__ = Path3DCollection

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2904,8 +2904,8 @@ def add_collection3d(self, col, zs=0, zdir='z', autolim=True, *,
29042904
"edgecolors", "c", "facecolor",
29052905
"facecolors", "color"])
29062906
def scatter(self, xs, ys, zs=0, zdir='z', s=20, c=None, depthshade=True,
2907-
depthshade_minalpha=0.3,
29082907
*args,
2908+
depthshade_minalpha=0.3,
29092909
axlim_clip=False,
29102910
**kwargs):
29112911
"""

0 commit comments

Comments
 (0)