def svgCircularArc(self, cx, cy, r, dStart, dEnd): #with d denoting degrees largeArc = abs(dEnd - dStart) >= 180 sweep = dEnd > dStart theta1 = dStart * numpy.pi/180 theta2 = dEnd * numpy.pi/180 x1 = cx + r * numpy.cos(theta1) y1 = cy + r * numpy.sin(theta1) x2 = cx + r * numpy.cos(theta2) y2 = cy + r * numpy.sin(theta2) return '<path d = "M %f %f A %f %f 0 %i %i %f %f" style="stroke:%s;stroke-width:%1.2f;fill:none" />' % (x1,y1,r,r,largeArc,sweep, x2,y2, self.svg_lineColor, self.svg_strokeWidth )