generated from mwc/lab_scatter
Checkpoint 1
I think I would be able to make the axes and the evenly spaced tick marks. I don't know how to use the x and y values from the list yet so I don't think I'd be able to make the labels or plot the points on the scatter plot.
This commit is contained in:
parent
d373f4693d
commit
8e57a173bb
|
@ -4,9 +4,28 @@
|
|||
- Draw the axes.
|
||||
- Draw the x-axis.
|
||||
- Draw the line.
|
||||
- ...
|
||||
- Find the range of the x-values
|
||||
- Divide the range by 5
|
||||
- Start at the origin. Label it with the lowest x-value
|
||||
- repeat until at the end of the axis:
|
||||
- add 1/5 of the range to the x-value
|
||||
- move to the right 1/5 of the length of the axis
|
||||
- draw a tick mark and label with the next x-value
|
||||
|
||||
- Draw the y-axis.
|
||||
- Draw the line.
|
||||
- ...
|
||||
- Find the range of the y-values
|
||||
- Divide the range by 5
|
||||
- Start at the origin. Label it with the lowest y-value
|
||||
- repeat until at the end of the axis:
|
||||
- add 1/5 of the range to the y-value
|
||||
- move up 1/5 of the length of the axis
|
||||
- draw a tick mark and label with the next y-value
|
||||
- Plot the points.
|
||||
- ...
|
||||
- Repeat for each point:
|
||||
- Start with turtle at the "origin"
|
||||
- move to the right the amount of the difference between the x-value and the lowest x- value
|
||||
- move up the amount of the difference between the y-value and the lowest y-value
|
||||
- plot the point
|
||||
- return to the "origin"
|
||||
|
||||
|
|
Loading…
Reference in New Issue