Wow, what an adventure! I had some trouble with this part of the lab,
mainly because of the error messages the terminal kept feeding back to
me. I kept looking at the lines the errors referred to and in several
cases, could not figure out what was wrong. When a classmate and I
finally compared our codes, that helped me see that the only error was
in my final function, and I was able to quickly clean that up and the
program worked. I did have to look up the zip function to combine lists
that I had previously separated, although looking back there may have
been a way to do this without the zip function by not separating the
original data set into x and y at the beginning. Overall thought, I
feel this code worked well and looks pretty clean. I’m hoping this work
with the functions here can help me clean up my drawing project (which
is a bit of a mess right now after I made so many changes). I’m going
to attempt that next and reach out for help as needed.
I found some of these functions in checkpoint 2 to be a little bit
trickier to write. I wasn’t always sure what was going on with each
function and often had to look back and really think about what each
function was doing. Particularly with the clamp and ratio functions I
had a more difficult time understanding what the purpose of the function
was in the grand picture of making the scatter plot, but the more I
played around with the functions the more sense it made. I did get stuck
once with the lists for the get_x and get_y values and while I thought I
needed to create a list, I was missing the piece about how to add to
the list. Checking in with classmates on Discord helped me to move
past that roadblock.
I think the drawing part of the scatter plot, such as the lines for the
axes and tick marks would be the easiest to draw so far because they
most resemble turtle drawings from unit 1. I think these drawings would
be somewhat complex based on the different distances the turtle has to
move so I look forward to what we will learn in this lab to hopefully
simplify that process. My sense is that this lab will cover functions
such as max and min and also how to draw using the turtle while pulling
values from a list.