8000 update-pie-textprops · tomspur/matplotlib@1bbf599 · GitHub
[go: up one dir, main page]

Ski 8000 p to content

Commit 1bbf599

Browse files
update-pie-textprops
1 parent 8328e2c commit 1bbf599

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2770,10 +2770,10 @@ def get_next_color():
27702770
raise TypeError(
27712771
'autopct must be callable or a format string')
27722772

2773-
t = self.text(xt, yt, s,
2774-
horizontalalignment='center',
2775-
verticalalignment='center',
2776-
**textprops)
2773+
props = dict(horizontalalignment='center',
2774+
verticalalignment='center')
2775+
props.update(textprops)
2776+
t = self.text(xt, yt, s, **props)
27772777

27782778
autotexts.append(t)
27792779

0 commit comments

Comments
 (0)
0