Maybe use a better method for clearing and re-plotting the graph on every iteration? See matplotlib.clf().
Maybe use a better method for clearing and re-plotting the graph on every iteration?
See matplotlib.clf().