[Matplotlib-users] Update subplot

Lars Eriksson info at lbm.nu
Sat Oct 3 21:52:52 CEST 2015


I need to update a plot continuously and if I use 
ax1.clear()
ax.plot(y)
fig.show()
It work well, but allocate memory for each update and take all CPU resource
after a while.
To solve the memory allocation problem I used 
line.set_xdata()
line.set_ydata()
plt.draw()
But I can't find how to use set_data() and draw() for a subplot.

Thanks
Lars




--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Update-subplot-tp46269.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


More information about the Matplotlib-users mailing list