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

Skip to content

Commit 794a2e3

Browse files
committed
Drawing an arrow didn't work properly if you
had the instructions for drawing the left part, and the right part, concatenated the two, without chopping off enough of the left part instructions.
1 parent 1edc210 commit 794a2e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/patches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ def __init__(self, x, y, dx, dy, width=0.001, length_includes_head=False,
12031203
# The half-arrows contain the midpoint of the stem,
12041204
# which we can omit from the full arrow. Including it
12051205
# twice caused a problem with xpdf.
1206-
coords = np.concatenate([left_half_arrow[:-1],
1206+
coords = np.concatenate([left_half_arrow[:-2],
12071207
right_half_arrow[-2::-1]])
12081208
else:
12091209
raise ValueError("Got unknown shape: %s" % shape)

0 commit comments

Comments
 (0)