У меня есть более сложный реальный случай, показывающий температурное поле в области в течение всего дня.
Не уверен, почему это происходит, это минимальный рабочий пример
from matplotlib import pyplot as plt
from matplotlib import animation, rc
from IPython.display import HTML
mySTR = [str(i) for i in range(0, 25)]
fig = plt.figure()
ax = plt.axes()
ax.set_title(mySTR[0], {'fontsize': 16})
def animateTitleInt(it):
ax.set_title(mySTR[it], {'fontsize': 16})
return ax
# call the animator
nTframes = len(mySTR)
anim = animation.FuncAnimation(fig, animateTitleInt, frames=nTframes, interval=300)
HTML(anim.to_html5_video()) #<--- this DOES NOT work and DOES NOT show "23" in the title
anim.save('Title_animation.gif', writer='imagemagick') #<--- this works and shows "23" in the title
любая помощь в решении этой проблемы приветствуется.
Заранее спасибо