generated from mwc/lab_scatter
I could make the marker, draw the lines, and move the turtle around appropriately to make a reasonable plot, but the thing I'm wondering about is the scale of the plot. It should be easy enough to modify later if it's a problem, but I'm wondering if I should have planned ahead for a plot with so many points, the whole thing should be resized. I'm not 100% sure how I'm going to do the increment for the axis label yet; it's easy enough to calculate the difference and turn that into, say, 5 equal divisions, but I haven't quite decided how I should deal with rounding the number out so it's not something like 63, 154, 245, 336, 427, 518. It's not the worst thing in the world if that's the output but I wouldn't be particularly happy with how it's presented.
24 lines
531 B
Markdown
24 lines
531 B
Markdown
# Planning the scatter plot
|
|
|
|
- Draw a scatter plot.
|
|
- Draw the axes.
|
|
- Draw the x-axis.
|
|
- Draw the line.
|
|
- Add label
|
|
- Calculate the scale
|
|
- Determine increment
|
|
- Draw min label
|
|
- Draw max label
|
|
- Draw increment
|
|
- Draw the y-axis.
|
|
- Draw the line.
|
|
- Add label
|
|
- Calculate the scale
|
|
- Determine increment
|
|
- Draw min label
|
|
- Draw max label
|
|
- Draw increment
|
|
- Plot the points.
|
|
- Move to coord
|
|
- Add marker
|