I have a pcolormesh() plot that I would like to update when a user presses a
key. Basically there are data files from 0..N and I want to update the plot
to the next frame when a user presses the 'right' arrow. I have the keypress
event working, I just don't know how to 'update' the data for the
I'm pretty new to matplotlib, so if anyone could help with this it would be
Thanks! (Code snippet below)
data2D = readDataFile() #updates data2D
#update pcolormesh somehow??
#X,Y,data2D are initially set here...
fig = plt.figure()
ax = fig.add_subplot(111)
plt.pcolormesh(X, Y, data2D)
View this message in context: http://old.nabble.com/How-to-update-pcolormesh-data---update-plot--tp31913409p31913409.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
Get latest updates about Open Source Projects, Conferences and News.