[reportlab-users] spider.py

Dirk Datzert reportlab-users@reportlab.com
Sat, 07 Dec 2002 19:54:33 +0100


Hi Andy,

I detected a possible mini-bug in SpiderChart line 179:

        for angle in angles:
            sa = sin(angle)*radius
            ca = cos(angle)*radius
            spoke = Line(centerx, centery, centerx + ca, centery + sa,
strokeWidth
= 0.5)
            #print 'added spoke (%0.2f, %0.2f) -> (%0.2f, %0.2f)' %
(spoke.x1, spok
e.y1, spoke.x2, spoke.y2)
            spokes.append(spoke)
-           test = self.labels[i]
+           text = labels[i]
            if text:

Regards,
Dirk