from myro import * from math import sin #Create a new Window myWin = GraphWin("Sine",500,100) #Set the coordinate system appropriate for displaying math functions. myWin.setCoords(-4.0,-1.0, 4.0,1.0) yAxis = Line( Point(0.0,-1), Point(0.0,1) ) yAxis.draw(myWin) xAxis = Line( Point(-4.0, 0), Point(4, 0) ) xAxis.draw(myWin) for n in range(0,400): x = (n - 200) / 50.0 y = sin(x) p = Point(x,y) p.draw(myWin) wait(0.01)