Apr-09-2019, 02:08 PM
Dear all,
I have this loop and it appears that it does not plot anything when I do that. When I take it outside of the loop, it works just fine. What gives? Thank you!
I have this loop and it appears that it does not plot anything when I do that. When I take it outside of the loop, it works just fine. What gives? Thank you!
import time dims = (40,40) for i in range (0,81): num = int(tmp[i][0])+1 print(num) mymap = read_corp('mydata'+str(num)+'.txt') mymap = mymap.reshape(dims[0],dims[1]) xi=4 yi=3 plt.imshow(mymap) plt.plot(xi,yi, marker='X') xi=20 yi=3 plt.imshow(mymap) plt.plot(xi,yi, marker='*') time.sleep(10) plt.close()