20 lines
423 B
Python
20 lines
423 B
Python
|
|
rel_x = pico_bpm6_new_x.read()
|
|
|
|
class XAxis(ReadableArray):
|
|
def read(self):
|
|
start = pico_bpm6_new.getTimestamp()
|
|
#return to_array([x + start for x in rel_x], 'd')
|
|
return [x + start for x in rel_x]
|
|
|
|
def getSize(self):
|
|
return len(rel_x) #only reads if cache is None
|
|
|
|
x_axis = XAxis()
|
|
|
|
|
|
|
|
setup_plotting(line_plots = [pico_bpm6_new, x_axis])
|
|
|
|
tscan([pico_bpm6_new, x_axis], 10, 0.5)
|