def makeFilledCircle(x, y, size, color): "Make a hollow circle marker." d = size/2.0 circle = Circle(x, y, d) circle.strokeColor = color circle.fillColor = color return circle
def makeEmptyCircle(x, y, size, color): "Make a hollow circle marker." d = size/2.0 circle = Circle(x, y, d) circle.strokeColor = color circle.fillColor = colors.white return circle
def makeEmptyCircle(x, y, size, color): "Make a hollow circle marker." d = size / 2.0 circle = Circle(x, y, d) circle.strokeColor = color circle.fillColor = colors.white return circle
def makeFilledCircle(x, y, size, color): "Make a hollow circle marker." d = size / 2.0 circle = Circle(x, y, d) circle.strokeColor = color circle.fillColor = color return circle
def create_circle(): drawing = Drawing(width=400, height=200) circle = Circle(50, 170, 25) circle.fillColor = colors.green circle.strokeColor = colors.red circle.strokeWidth = 5 drawing.add(circle) drawing.save(formats=['pdf'], outDir='.', fnRoot='circle')