Sir my graph is not plotting while animating weights
Can you share colab link to access the file?
Verify your range of weights values that you are trying to plot/animate.
These two changes made the animation work/visible for me.
- adjust y limit.
- ax.set_ylim((-150, 250))
- set interval to a smaller value
- anim = animation.FuncAnimation(fig, animate, frames=100, interval=20, blit=True)
Thanks sir it worked