1
Je veux une image animée. Mais j'ai besoin d'une fonction de rafraîchissement parce que plt.show() ouvre toujours une nouvelle fenêtre. Quelqu'un at-il un indice? Merci!Python: Animation avec PIL
import numpy as np
import scipy
from scipy import *
import matplotlib.pyplot as plt
#array
aa = []
for x in range(44):
aa.append([])
for z in range(44):
aa[x].append(3*sin(x/3.0)+2*cos(z/3.0))
b = aa
plt.imshow(b)
plt.show()
time = 0
dt = 0.1
while(time<3):
b = sin(aa)
time += dt
Pourquoi n'utilisez-vous pas PyOpenGL ou Pygame ou une autre bibliothèque plus adaptée à cette tâche. Pourquoi PIL? – batbrat