Defining multiple plots to be animated with a for loop in matplotlib
In the solution below I showcase a bigger example (with also bar plot) that may help people understand better what should be done for other cases. After the code I explain some details and answer the bonus question. import matplotlib matplotlib.use(‘Qt5Agg’) #use Qt5 as backend, comment this line for default backend from matplotlib import pyplot … Read more