Viktor_von_Matfyz

Untitled

May 3rd, 2021
555
360 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import numpy as np
  2. import matplotlib.pyplot as plt
  3.  
  4. raw_data = np.genfromtxt("sample1_raw.csv", delimiter = ',')
  5. series = raw_data[1:, 1:]
  6. series_trans = series - 9990000
  7.  
  8. fig, ax = plt.subplots()
  9.  
  10. ax.plot(series_trans[:, 0])
  11. plt.pause(0.000000001)
  12. loop_check = True
  13. while loop_check:
  14.     inp = input("Select measurement data: ")
  15.     try:
  16.         lim = int(inp)
  17.         l = ax.axvline(lim)
  18.         plt.pause(0.000000001)
  19.         inp_pass = input("Continue? y/n: ")
  20.        
  21.         if inp_pass == 'y':
  22.             loop_check = False
  23.         else:
  24.             ax.cla()
  25.             ax.plot(series_trans[:, 0])
  26.     except:
  27.         continue
  28.        
  29.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×