setCoords()
The GraphWin method that sets your own coordinate system, giving the x and y of the lower-left and upper-right corners.
In more detail
win.setCoords(0, 0, 400, 300) makes y point upwards like a graph, and shapes scale with the window. The course adds it as a tutorial addition to turn the axis the right way up.
Related terms
- GraphWin — The graphics.py class for a window you can draw in, created as GraphWin(title, width, height).
- coordinates — A pair of numbers, x across and y down or up, that gives a position in a window.
Taught in
- Reading The graphics.py Documentation — Hands-on Python: Complete Video Course & Book