title: Efficient way to plot oscilloscope .trc files
body: <p>I found this script to read .trc files with python and it works fine:</p>
  
  <p><a href="https://github.com/yetifrisstlama/readTrc" rel="nofollow noreferrer">https://github.com/yetifrisstlama/readTrc</a></p>
  
  <p>Only problem is that to restructure and plot the file seems to be very slow. I can plot a .trc file of 200KB but when I try to plot one of 200MB my machine just freezes. These files have many millions of values. To be fair, my machine is a 6 year old laptop which runs very slowly. </p>
  
  <p>I wonder if one of you guys know a more efficient script to handle .trc files than that provided above.</p>
  
  <p>This is my code:</p>
  
  <pre><code>import pandas as pd
  import matplotlib.pyplot as plt
  import readTrc
  
  datX, datY, m = readTrc.readTrc('C220180104_ch2_UHF00000.trc')
  
  srx, sry = pd.Series(datX), pd.Series(datY)
  df = pd.concat([srx, sry], axis = 1)
  df.set_index(0, inplace = True)
  
  df.plot(grid = 1)
  plt.show()
  </code></pre>
  
  <p>Thanks in advance.</p>
  
  <p>Artur</p>