These weeks I made major progress in writing a reset button that works for all three plots. One minor but finicky problem with the plots before was that you could zoom in or out as far as you wanted, easily getting “lost” and unable to find your original data again.
The reset button brings the user back to the plot’s initial view. It also animates the trip from point A to point B so that the user can avoid being suddenly disoriented by an entirely new view of the graph, if they either weren’t sure of their orientation before or didn’t know what the button did.
The problem that took me the most time to solve turned out to be that I was trying to call a function that was nested inside of another function, and was therefore invisible to Java’s call(). It became necessary to create a third function besides draw() and update() that could call update’s nested reset() function.
The Reset button is now functional on all plots and is merged with Topsoil’s main branch.