Pequeño ejemplo
Código Python:
Ver originalimport matplotlib.pyplot as plt
import numpy as np
x = np.arange(-100, 100)
y = ((.1 * x) ** 2)
plt.ion()
fig = plt.figure()
ax = fig.add_subplot(111)
line, = ax.plot(x, y)
ax.set_xlim(-100, 100)
ax.set_ylim(-10, 100)
fig.canvas.draw()
for i in range(len(x)):
line.set_xdata(x[:i])
line.set_ydata(y[:i])
fig.canvas.draw()