Ejemplo n.º 1
0
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
Ejemplo n.º 2
0
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
Ejemplo n.º 3
0
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
Ejemplo n.º 4
0
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
Ejemplo n.º 5
0
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')