Matplotlib’s `line.set_data_3d()` is slower upon reloading the graph
I’m making a website in which users can input one NBA player and get an animation of their shots. The code is working properly, but when I load another NBA player (or the same NBA player the second time), the Matplotlib animation works more slowly.