The first few went will for me but when I started to get to the def ratio function everything started getting confusing.
When I was stuck I did try to use my notes from CsE 115 which helped me out a little.
I feel like I can only plot create the x-axis and y-axis on my own. I might have a hard time plotting the scatterplot.
I might have issues plotting the dots to their specific coordinates if there is any.