/+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/scatter.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:
53
53
    ymid = 50
54
54
    xlist = []
55
55
    ylist = []
56
 
    for angle in xrange(0, steps + 1):
 
56
    for angle in range(0, steps + 1):
57
57
        angle = float(angle) / steps * math.pi * 2
58
58
        xlist.append(math.cos(angle) * xradius + xmid)
59
59
        ylist.append(math.sin(angle) * yradius + ymid)