From: André W. <wo...@us...> - 2012-10-22 05:11:37
|
Dear Charles, Am 22.10.2012 um 05:17 schrieb Charles Bowman: > It's great to see PyX-0.12 working well on my xp and windows 7 boxes! Glad to hear that. > When printing text along a path, I sometimes don't want to include the path so I > attempt to print a "zero width" path in the manner shown below. > > The following code in PyX-0.12 prints a line when linewidth is set to zero > > Any suggestions? Use the draw method instead of the stroke method. You can than ignore the linewidth at all, as the original path won't be contained in the output at all. Internally (and to introduce you with some PyX speak), the draw method applies all the decorators to the path and outputs it. The stroke and fill methods do the same, but they add the stroke and fill decorator. After all decorators have been applied, a decorated path instance will be output, which does not just contain the path with its output attributes applied, but also ornaments like the text along a path or an arrow head etc. Best, André -- by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim / \ \ / ) wo...@us..., http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ |