I think this lab was challenging, and I'm not sure if I did it the
way we were supposed to, because I had to search how to use multiple
lists the way I wanted to, which was using zip. I tried adding the two
lists but it didn't seem like that would get my what I wanted, and also
it didn't work. I got stuck on getting the points drawn properly for a
while; first, I got a single point, then I was able to get a vertical
line of points, and then I got identical vertical lines of points at
each of the x-values (when I had the y for loop nested inside of the
x for loop).
I think the top-down vs. bottom-up approaches aren't really separate,
but you have to go back and forth between them because the top-down
approach helps to identify some of the pieces you need to work bottom-
up from.
I felt like at the beginning, I thought the program would use some of
the stuff we did in the pipes lab, so that informed my top-down plan.
Another program I thought about writing during this lab was one that
could take a csv file and identify different common elements and group
them and display them, but that has more to do with other tasks I was
doing than this lab probably, but I still think that some of the things
here probably helped me think about breaking that down into smaller
pieces.
My axes are good and then I got to where the last point was being
drawn (just one), and now all of the points are being drawn, but they
all have the same x-position because I have draw_points in a list
for y_value in y_values. I just wanted to submit to update my progress,
but I think I have to use both lists, but when I've tried it ends up
with an error.
so I made another superturtle clone python file (superturtlescat.py)
for now. I also changed some of the functions to try to get the
scatterplot to be drawn properly, but it's still in progress.
I think it went well. The errors were kind of easy to fix because it
simple math, so seeing what was expected and what was returned helped
me to fix the errors. The one I had the most trouble with was actually
the ratio function, because I kept gettinga negative value even when I
first tried to include the clamp function. Eventually I figured to
return clamp with r as the value, instead of clamp and return r.
I think I would be able to make most of the scatterplot now, but
I guess I am maybe unsure how the tickmarks and automatic scaling
are accomplished. It bothers me that the minimum and maximum on the
axes are the minumum and maximum values from the ordered pairs.