I'm doing a numerical optimization, and I want to visualize the loss
of the objective function at each iteration, which means I need to add one point when each iteration is done into the plot.
I thought this might be a matplotlib.animation
job, but it seems that animation
just updates the plot by interval
period of time, this is not what I want.
After searching SO, I indeed find a tricky solution, but is there a better way?