Skip to content

Commit 0cfea91

Browse files
committed
fix side-effect of annotate that modifies the input dictionary
1 parent 23cdfaa commit 0cfea91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/text.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1799,7 +1799,7 @@ def __init__(self, s, xy,
17991799
self.arrow = None
18001800

18011801
if arrowprops and arrowprops.has_key("arrowstyle"):
1802-
1802+
arrowprops = self.arrowprops.copy()
18031803
self._arrow_relpos = arrowprops.pop("relpos", (0.5, 0.5))
18041804
self.arrow_patch = FancyArrowPatch((0, 0), (1,1),
18051805
**arrowprops)

0 commit comments

Comments
 (0)