I am trying to update a plot as fast as possible. I posted this question in other forums and found no solution. The quickest way I found so far is in this post, where a line plot updates very quickly using a while loop. This is the relevant piece of code:
The speed of that execution is perfect for my needs. The problem is that I need to also include text in the plot, and this text should be updated too in each iteration. I have tried so far updating the plot title and related ways but the text is only updated when the while loop finishes.
I feel the answer must be in Artist documentation, but given my introductory knowledge of matplotlib it seems to be ‘hidden’ yet for me. What am I missing? I just need a text in any place in the plot, showing the iteration number (eg the value of num_plots in the example above).
Setting the title will technically work, but in this code you are only updating the area inside of the Axes (that is what the ax.bbox in fig.canvas.blit(ax.bbox) does).