Home | History | Annotate | Download | only in btt

Lines Matching refs:db

152 	db = {}
171 db[file] = {'x':xs, 'y':ys}
173 db[file]['ax'], db[file]['ay'] = avg(xs, ys)
175 db[file]['ax'] = db[file]['ay'] = None
177 db['min_x'] = min_x
178 db['max_x'] = max_x
179 db['min_y'] = min_y
180 db['max_y'] = max_y
181 return db
255 def gen_labels(db, ax, type):
271 xdelta = 0.1 * (db['max_x'] - db['min_x'])
272 ydelta = 0.1 * (db['max_y'] - db['min_y'])
274 ax.set_xlim(db['min_x'] - xdelta, db['max_x'] + xdelta)
275 ax.set_ylim(db['min_y'] - ydelta, db['max_y'] + ydelta)
281 def generate_output(type, db):
323 gen_labels(db, ax, type)
332 for file in db.iterkeys():
338 dat = db[file]