previous |
start |
next
Coordinate Transformations
- Plot temperature data in Phoenix
- x ranges from 1 (January) to 12 (December)
- y ranges from 11 degrees (Celsius) to 33 degrees
- Transform user coordinates to pixel coordinates

- Encapsulate computation in convenience methods xpixel,
ypixel (see code)
- Even better, use graphics context transforms (advanced
topic)
previous |
start |
next