From 794a2e3f1faba5cda6461d08699cd0d08ecacf26 Mon Sep 17 00:00:00 2001 From: Jason King Date: Sun, 1 Nov 2015 09:27:07 +1100 Subject: [PATCH] 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. --- lib/matplotlib/patches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index e4f1c750df54..90652b9d16c3 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -1203,7 +1203,7 @@ def __init__(self, x, y, dx, dy, width=0.001, length_includes_head=False, # The half-arrows contain the midpoint of the stem, # which we can omit from the full arrow. Including it # twice caused a problem with xpdf. - coords = np.concatenate([left_half_arrow[:-1], + coords = np.concatenate([left_half_arrow[:-2], right_half_arrow[-2::-1]]) else: raise ValueError("Got unknown shape: %s" % shape)