Let's say I want to visualize a function changing in real-time. What would be the best way to smoothly update a plot with an entirely new dataset at 60 FPS?
With ui.Path I don't see a way to update the whole path at once.. if I try to iterate through the dataset with line_to() on each update it's pretty laggy.
Just to make this concrete, in particular I'd like to visualize a damped sine wave (https://en.wikipedia.org/wiki/Damped_sine_wave) with a given window around the y-axis, feeding in new amplitudes in response to user input, and updating 't' as a function of time.
Thanks for any help!