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

Skip to content

Commit b474cd6

Browse files
committed
Changed full arrows slightly to avoid an xpdf rendering
problem reported by Friedrich Hagedorn. svn path=/branches/v0_91_maint/; revision=6073
1 parent a57332c commit b474cd6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2008-09-07 Changed full arrows slightly to avoid an xpdf rendering
2+
problem reported by Friedrich Hagedorn. - JKS
3+
14
2008-08-25 Fix locale issues in SVG backend - MGD
25

36
2008-08-01 Backported memory leak fixes in _ttconv.cpp - MGD

lib/matplotlib/patches.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,11 @@ def __init__(self, x, y, dx, dy, width=0.001, length_includes_head=False, \
634634
if shape == 'right':
635635
coords = right_half_arrow
636636
elif shape == 'full':
637-
coords=npy.concatenate([left_half_arrow,right_half_arrow[::-1]])
637+
# The half-arrows contain the midpoint of the stem,
638+
# which we can omit from the full arrow. Including it
639+
# twice caused a problem with xpdf.
640+
coords=npy.concatenate([left_half_arrow[:-1],
641+
right_half_arrow[-2::-1]])
638642
else:
639643
raise ValueError, "Got unknown shape: %s" % shape
640644
cx = float(dx)/distance

0 commit comments

Comments
 (0)