감동, 마음이 움직이는 것
[python] plot during simulation 본문
Tips (Utility, Computer Language, and etc.)
[python] plot during simulation
Struggler J. 2018. 12. 4. 20:25[ref]
https://stackoverflow.com/questions/23141452/difference-between-plt-draw-and-plt-show-in-matplotlib
# main loop
for t in range(10000):
bk += dt*eom(temp_bk)
t += dt
#plot
if time%1000==0:
plt.axis([100, 300, 0, 0.2])
plt.plot(bk)
plt.pause(0.05)
plt.show()
'Tips (Utility, Computer Language, and etc.)' 카테고리의 다른 글
[gnuplot] for loop & obj (circle, rec) (0) | 2018.12.13 |
---|---|
[useful softwares and package] (0) | 2018.12.05 |
[macos] bashrc터미널 켜면 자동으로 실행 (0) | 2018.12.04 |
[Latex] multiple ailgnment (0) | 2018.11.16 |
[Latex] xarrow에서 화살표 width 고정시키기 (0) | 2018.11.16 |