timedomainresonace/ptime.py

14 lines
225 B
Python
Raw Normal View History

2015-02-10 07:17:40 +00:00
#!/usr/bin/python
from numpy import *
from matplotlib.pyplot import *
pfile=loadtxt('results/p.dat')
gp=300
pend=zeros(floor(pfile.shape[0]/gp))
for i in range(pend.size):
pend[i]=pfile[(i+1)*gp-1,1]
plot(pend)
show()