我是python和matplotlib的新手,需要一些指导。我正在尝试编写一个监视器来查询表并绘制结果。从该表中,我可以提取一个用于X轴的时间戳和一个用于Y值的秒数(发送的数据包数量)。我不确定动画函数的"i“填充在哪里。我的图出现了,但却是空的。我不确定应该将ax.set_xlim设置为什么,最后,我如何让日期/时间戳显示在x轴上?我正在尝试修改以下示例:from matplotlib import pyplot as plt
from matplotl
我试图用FuncAnimation在matplotlib中动画化一些分形。当我将blit设置为False时,没有错误:代码运行良好,并为我生成了一个很好的动画。但是,当我将blit设置为True时,它会给我TypeError: 'Line2D' object is not iterable。有人知道为什么会发生这种事吗?我怎样才能解决它?我有一种快速的方法来生成
import matplotlib.animation as animationimport matplotlib.pyplot as pltdefplt.subplot(gspec[1,0])a = animation.FuncAnimation(fig,update,blit=True,interval=1,repeat=False)
我怎样才能让它更快?