generated from mwc/lab_scatter
What I changed for my first checkpoint is I broke down the process of creating a scatter plot.
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.
This commit is contained in:
@@ -2,11 +2,22 @@
|
||||
|
||||
- Draw a scatter plot.
|
||||
- Draw the axes.
|
||||
- Draw the x-axis.
|
||||
- Draw the line.
|
||||
- ...
|
||||
- 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.
|
||||
- ...
|
||||
- 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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user