Package dics :: Module temp_plotter
[hide private]
[frames] | no frames]

Module temp_plotter
source code

Variables [hide private]
filename  
log_file  
lines  
pattern  
timefmt  
matches  
data  
win  
vbox  
fig  
ax  
canvas  
toolbar  

Variables Details [hide private]

filename

Value:
sys.argv [1]                                                           
      

log_file

Value:
file(filename,'r')                                                     
      

lines

Value:
log_file.readlines()                                                   
      

pattern

Value:
re.compile(r'(?P<time>^\d+\w+\d+\s+\d+:\d+:\d+)\s+'r'(?P<cjt>\d+\.\d*)\
\s+'r'(?:(\d+\.\d*)(?:\s+))+')                                         
      

timefmt

Value:
'%d%b%y %H:%M:%S'                                                      
      

matches

Value:
[pattern.match(line)forlineinlines]                                    
      

data

Value:
[[datetime.datetime.fromtimestamp(time.mktime(time.strptime(match.grou\
p('time'),timefmt)))]+ [float(temp)fortempinmatch.groups() [1:]]format\
chinmatches]                                                           
      

win

Value:
gtk.Window()                                                           
      

vbox

Value:
gtk.VBox()                                                             
      

fig

Value:
Figure(figsize= (5,4),dpi=100)                                         
      

ax

Value:
fig.add_subplot(111)                                                   
      

canvas

Value:
FigureCanvas(fig)                                                      
      

toolbar

Value:
NavigationToolbar(canvas,win)