Revision: 2630
Author: m-schindler
Date: 2006-04-27 10:33:10 -0700 (Thu, 27 Apr 2006)
ViewCVS: http://svn.sourceforge.net/pyx/?rev=2630&view=rev
Log Message:
-----------
cosmetics
Modified Paths:
--------------
trunk/pyx/test/experimental/test_bezier.py
Modified: trunk/pyx/test/experimental/test_bezier.py
===================================================================
--- trunk/pyx/test/experimental/test_bezier.py 2006-04-27 17:32:11 UTC (rev 2629)
+++ trunk/pyx/test/experimental/test_bezier.py 2006-04-27 17:33:10 UTC (rev 2630)
@@ -79,18 +79,13 @@
# selectively draw the curves:
#if minindex == -1:
+ #if minindex > 0:
if minmaxdist > accuracy:
# draw the failure curves
can.stroke(path.rect_pt(0,0,xmax,ymax), [trafo.translate_pt(xpos, ypos)])
- can.stroke(normpath.normpath([normpath.normsubpath([origcurve])]), [trafo.translate_pt(xpos, ypos), style.linewidth.THIck])
+ can.draw(normpath.normpath([normpath.normsubpath([origcurve])]), [trafo.translate_pt(xpos, ypos), deco.stroked([style.linewidth.THIck]), deco.shownormpath()])
if minindex != -1:
can.stroke(normpath.normpath([normpath.normsubpath([reprocurves[minindex]])]), [trafo.translate_pt(xpos, ypos), color.rgb.red])
- if cnt == 604:
- print controldistpairs
- for j, controldistpair in enumerate(controldistpairs):
- can.stroke(normpath.normpath([normpath.normsubpath([reprocurves[j]])]),
- [trafo.translate_pt(xpos, ypos), color.palette.ReverseRainbow.select(j, len(controldistpairs))])
-
can.text(0, 0, r"(%d)" % (cnt), [trafo.translate_pt(xpos+0.5*xmax, ypos), text.halign.center, text.vshift(2.0)])
xpos += 1.1*xmax
if xpos > 11*xmax:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|