# File: ChapterGraphics/pixel0.py # Plot pixels.. win.plot(x,y,color) from graphics import * def main(): win = GraphWin( "The coordinates", 500, 500 ) win.setCoords( 0,0, 400, 400 ) # change Center of axes m = 1.1 # slope for x in range(200): win.plot(x, m * x) msg = Text( Point(100,20), "Line is y = mx " ) msg.draw( win ) main()