From c8faeac555e3689dfacb2594f1311e071d886653 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rg=20Lehmann?= Date: Thu, 18 Mar 2004 13:43:31 +0000 Subject: [PATCH] arrow heads are no longer stroked git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@1456 069f4177-920e-0410-937b-c2a4a81bcd90 --- CHANGES | 1 + pyx/deco.py | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/CHANGES b/CHANGES index eb0ae769..7df956f6 100644 --- a/CHANGES +++ b/CHANGES @@ -107,6 +107,7 @@ TODO: - deco module: - wriggle decorator (TODO: documentation) - curvecorners decorator (TODO: documentation) + - arrow heads are no longer stroked (as suggested by Magnus Lie Hetland) - canvas: - writeEPSfile deprecates writetofile - internally, write methods are renamed in outputPS diff --git a/pyx/deco.py b/pyx/deco.py index abd0d258..5c5fb5c4 100644 --- a/pyx/deco.py +++ b/pyx/deco.py @@ -156,8 +156,6 @@ class decoratedpath(base.PSCmd): def outputPDF(self, file): # draw (stroke and/or fill) the decoratedpath on the canvas - # while trying to produce an efficient output, e.g., by - # not writing one path two times def _writestyles(styles, file=file): for style in styles: @@ -367,14 +365,14 @@ def _arrowhead(anormpath, size, angle, constriction): return arrow -_base = unit.v_pt(4) +_base = unit.v_pt(6) class arrow(deco, attr.attr): """arrow is a decorator which adds an arrow to either side of the path""" def __init__(self, attrs=[], position=0, size=_base, angle=45, constriction=0.8): - self.attrs = attr.mergeattrs([style.linestyle.solid, stroked, filled] + attrs) + self.attrs = attr.mergeattrs([style.linestyle.solid, filled] + attrs) attr.checkattrs(self.attrs, [deco, style.fillstyle, style.strokestyle]) self.position = position self.size = unit.length(size, default_type="v") @@ -679,5 +677,3 @@ class curvecorners(deco, attr.attr): dp.path = newpath dp.strokepath = newpath return dp - - -- 2.11.4.GIT