Simplify framerate alteration

This commit is contained in:
Michael Bradley 2023-10-07 18:18:29 -04:00
parent 6b623d3a30
commit 9606ca4151

View file

@ -37,7 +37,7 @@ class Animator:
self.ani = animation.FuncAnimation( self.ani = animation.FuncAnimation(
self.fig, self.fig,
self.update, self.update,
interval=1000/120, interval=1000 / (15 * 2 ** 4),
init_func=self.setup_plot, init_func=self.setup_plot,
blit=True, blit=True,
cache_frame_data=False cache_frame_data=False