10000 Simplify setup of pie() shadows. · matplotlib/matplotlib@3497b07 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3497b07

Browse files
committed
Simplify setup of pie() shadows.
A `Shadow` already sets zorder immediately below its parent patch, so that's no longer necessary.
1 parent ab3478c commit 3497b07

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3076,8 +3076,7 @@ def get_next_color():
30763076
if shadow:
30773077
# Make sure to add a shadow after the call to add_patch so the
30783078
# figure and transform props will be set.
3079-
shad = mpatches.Shadow(w, -0.02, -0.02)
3080-
shad.set(zorder=0.9 * w.get_zorder(), label='_nolegend_')
3079+
shad = mpatches.Shadow(w, -0.02, -0.02, label='_nolegend_')
30813080
self.add_patch(shad)
30823081

30833082
if labeldistance is not None:

0 commit comments

Comments
 (0)
0