/+junk/pygooglechart-py3k

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/pygooglechart-py3k

« back to all changes in this revision

Viewing changes to examples/line.py

  • Committer: Gustav Hartvigsson
  • Date: 2011-01-03 20:24:45 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20110103202445-qh7ogio9ined8ufv
Made it compatible with Python 3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
    ymid = 50
62
62
    xlist = []
63
63
    ylist = []
64
 
    for angle in xrange(0, steps + 1):
 
64
    for angle in range(0, steps + 1):
65
65
        angle = float(angle) / steps * math.pi * 2
66
66
        xlist.append(math.cos(angle) * xradius + xmid)
67
67
        ylist.append(math.sin(angle) * yradius + ymid)
141
141
    # first number because it's obvious and gets in the way of the first X
142
142
    # label.
143
143
    left_axis = range(0, max_y + 1, 25)
144
 
    left_axis[0] = ''
 
144
    #left_axis[0] = ''
145
145
    chart.set_axis_labels(Axis.LEFT, left_axis)
146
146
 
147
147
    # X axis labels