I am trying to simulate an animation of a circular shock wave from a selected data point using Matplotlib\'s circle and animation. But I couldn\'t figure out a way to remov
Add this code to your animate function:
for obj in ax.findobj(match = type(plt.Circle(1, 1))):
obj.remove()
ax.findobj(match = type(plt.Circle(1, 1))) looks for all the circle patches on the axes, which you can then remove before plotting a new circle. I used plt.Circle() to make a circle object to match -- the arguments you pass it don't really matter.