File indexing completed on 2026-04-09 07:49:22
0001
0002 import numpy as np, os
0003 import matplotlib.pyplot as plt
0004
0005 if __name__ == '__main__':
0006 ttpath = os.path.expandvars("$FOLD/tt.npy")
0007 print("loading timestamps from ttpath %s " % ttpath )
0008 t = np.load(ttpath)
0009
0010 dt = t - t[0]
0011
0012 print(np.c_[t.view("datetime64[us]")])
0013 i = np.arange(len(t))
0014 s = slice(None,None,1000)
0015
0016 fig, ax = plt.subplots(figsize=[12.8,7.2])
0017 ax.scatter( i[s], dt[s] )
0018 fig.show()
0019
0020
0021