tests/test_charts_textlabels.py
branchpy33
changeset 3794 398ea04239b5
parent 3617 ae5744e97c42
child 4252 fe660f227cac
equal deleted inserted replaced
3793:cc3f9cc828f7 3794:398ea04239b5
    84         w, h = drawWidth, drawHeight = 400, 100
    84         w, h = drawWidth, drawHeight = 400, 100
    85 
    85 
    86         drawings = []
    86         drawings = []
    87 
    87 
    88         for boxAnchors in ('sw se nw ne', 'w e n s', 'c'):
    88         for boxAnchors in ('sw se nw ne', 'w e n s', 'c'):
    89             boxAnchors = string.split(boxAnchors, ' ')
    89             boxAnchors = boxAnchors.split(' ')
    90 
    90 
    91             # Create drawing.
    91             # Create drawing.
    92             d = Drawing(w, h)
    92             d = Drawing(w, h)
    93             d.add(Line(0, h*0.5, w, h*0.5, strokeColor=colors.gray, strokeWidth=0.5))
    93             d.add(Line(0, h*0.5, w, h*0.5, strokeColor=colors.gray, strokeWidth=0.5))
    94             d.add(Line(w*0.5 ,0, w*0.5, h, strokeColor=colors.gray, strokeWidth=0.5))
    94             d.add(Line(w*0.5 ,0, w*0.5, h, strokeColor=colors.gray, strokeWidth=0.5))