from scipy import signal
import re
g=[]
g11=[]
for bl in re.findall('\\\\begin{BLOG}.*?\\\\end{BLOG}',open('2012_log.tex').read(),re.DOTALL):g.append(len(bl))
for bl in re.findall('\\\\begin{BLOG}.*?\\\\end{BLOG}',open('../2011/all_test_.tex').read(),re.DOTALL):g11.append(len(bl))
g11.reverse()
g11_p=hstack((zeros(15),g11))
plot(range(0,len(g11_p)),g11_p,range(0,len(g11_p)),signal.cspline1d(array(g11_p,dtype='float'),10.0))
plot(range(0,len(g)),g,range(0,len(g)),signal.cspline1d(array(g,dtype='float'),10.0))
plot(range(0,len(g11_p)),signal.cspline1d(array(g11_p,dtype='float'),10.0),range(0,len(g)),signal.cspline1d(array(g,dtype='float'),10.0))
No comments:
Post a Comment