generated from mwc/lab_scatter
Checkpoint 1: If I were to write out my own scatter plot I think I could write a bit. I would need help with how to begin the scatter plot but I would know what would be needed to complete the scatter plot. Getting the idea of what I need for the scatter plot is easier for me rather than putting what I need on paper as a code for my scatter plot without many trial and error attempts.
604 B
604 B
Planning the scatter plot
- Draw a scatter plot.
-
Draw the axes.
-
Draw the x-axis for the x-axis.
-
Get all x-values from the data.
-
Find min and max of x-values.
-
Calculate tick marks.
-
Draw tick marks and labels.
-
Draw the y-axis.
- Draw the line for the y-axis.
- Get all the y-values from the data.
- Find the min and max of y-values.
- Calculate tick marks.
- Draw tick marks and labels.
-
-
Plot the points.
- Find x and y bounds.
- scale each point to the screen size.
- Draw each point as a dot.
-