tests/test_graphics_charts.py
branchpy33
changeset 3794 398ea04239b5
parent 3721 0c93dd8ff567
child 4056 be1be82d76fa
equal deleted inserted replaced
3793:cc3f9cc828f7 3794:398ea04239b5
    77     bc.categoryAxis.labels.boxAnchor = 'ne'
    77     bc.categoryAxis.labels.boxAnchor = 'ne'
    78     bc.categoryAxis.labels.dx = 8
    78     bc.categoryAxis.labels.dx = 8
    79     bc.categoryAxis.labels.dy = -2
    79     bc.categoryAxis.labels.dy = -2
    80     bc.categoryAxis.labels.angle = 30
    80     bc.categoryAxis.labels.angle = 30
    81 
    81 
    82     catNames = string.split('Jan Feb Mar Apr May Jun Jul Aug', ' ')
    82     catNames = 'Jan Feb Mar Apr May Jun Jul Aug'.split( ' ')
    83     catNames = [n+'-99' for n in catNames]
    83     catNames = [n+'-99' for n in catNames]
    84     bc.categoryAxis.categoryNames = catNames
    84     bc.categoryAxis.categoryNames = catNames
    85     drawing.add(bc)
    85     drawing.add(bc)
    86 
    86 
    87     return drawing
    87     return drawing
   111     bc.categoryAxis.labels.boxAnchor = 'ne'
   111     bc.categoryAxis.labels.boxAnchor = 'ne'
   112     bc.categoryAxis.labels.dx = 8
   112     bc.categoryAxis.labels.dx = 8
   113     bc.categoryAxis.labels.dy = -2
   113     bc.categoryAxis.labels.dy = -2
   114     bc.categoryAxis.labels.angle = 30
   114     bc.categoryAxis.labels.angle = 30
   115 
   115 
   116     catNames = string.split('Jan Feb Mar Apr May Jun Jul Aug', ' ')
   116     catNames = 'Jan Feb Mar Apr May Jun Jul Aug'.split(' ')
   117     catNames = [n+'-99' for n in catNames]
   117     catNames = [n+'-99' for n in catNames]
   118     bc.categoryAxis.categoryNames = catNames
   118     bc.categoryAxis.categoryNames = catNames
   119     drawing.add(bc)
   119     drawing.add(bc)
   120 
   120 
   121     return drawing
   121     return drawing