animation moving point error
问题 I am a beginner to Python. I'm trying to make an animation of a point moving in the horizontal direction. But, when I ran the code I received the below error: TypeError: 'PathCollection' object is not iterable I have no idea how to fix it. #---------------------------------------------------------------------- import numpy as np import matplotlib import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation Acc_11 = [1,2,3,4,6,7] lenAcc11 = len(Acc_11) Acc_12 = [2,2,2,2,2,2]