Finding max/min values of student sketch

I don’t have a screen to share at the moment, but was wondering if there is an efficient way to determine the global maximum and/or minimum of a student’s sketch. My current approach is to use:

numberList(`w_0`): this.sketch.yValuesAt(0)

and repeat for multiple x values, then to join all the lists in the graph and use the max( ) and min( ) functions, but I feel like there should be an easier way. My intent is to adjust the range of a separate graph.

We covered this in our CL newsletter a few months ago: A Better Way To Interpret Sketches

Awesome! Thanks. I figured there was a way.