create-test-files-using-axographio.py 433 B

1234567891011121314
  1. import numpy as np
  2. import axographio
  3. names = ['Time (s)', 'Data 1 (V)', 'Data 2 (V)']
  4. t = np.arange(0, 10, 0.01)
  5. data1 = np.sin(1*t)
  6. data2 = np.cos(2*t)
  7. f1 = axographio.file_contents(names, [t, data1, data2])
  8. f1.write('written-by-axographio-without-linearsequence.axgx')
  9. f2 = axographio.file_contents(names, [axographio.aslinearsequence(t), data1, data2])
  10. f2.write('written-by-axographio-with-linearsequence.axgx')