<jupyter_start><jupyter_text>Load data<jupyter_code>data = pd.read_csv("Data/test2.txt") 
data.head()
dataList = data.iloc[0]<jupyter_output><empty_output><jupyter_text>Choosing filter<jupyter_code>dataList = abs(dataList[:180])
filteringData1 = savgol_filter(dataList,5,2)
filteringData2 = savgol_filter(dataList,7,2)
filteringData3 = savgol_filter(dataList,9,2)
filteringData4 = savgol_filter(dataList,11,2)
figure(figsize=(15, 7))

plt.subplot(2,1,1)
plt.plot(dataList)
plt.plot(filteringData1)
plt.title("Savitzkiy-Goley 5,2")
plt.axis('off')
plt.subplot(2,1,2)
plt.plot(dataList)
plt.plot(filteringData2)
plt.title("Savitzkiy-Goley 7,2")
plt.axis('off')

figure(figsize=(15, 7))

plt.subplot(2,1,1)
plt.plot(dataList)
plt.plot(filteringData3)
plt.title("Savitzkiy-Goley 9,2")
plt.axis('off')
plt.subplot(2,1,2)
plt.plot(dataList)
plt.plot(filteringData4)
plt.title("Savitzkiy-Goley 11,2")
plt.axis('off')<jupyter_output>C:\Users\Denis\Anaconda3\envs\myoarm\lib\site-packages\ipykernel_launcher.py:11: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance.  In a future version, a new instance will always be created and returned.  Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance.
  # This is added back by InteractiveShellApp.init_path()
C:\Users\Denis\Anaconda3\envs\myoarm\lib\site-packages\ipykernel_launcher.py:16: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance.  In a future version, a new instance will always be created and returned.  Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance.
  app.launch_new_instance()
{'fraction_non_alphanumeric': 0.11487964989059081, 'fraction_numerical': 0.030087527352297593, 'mean_word_length': 6.986899563318778, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '614491', 'license': 'MIT', 'n_tokens_mistral': 708, 'n_tokens_neox': 644, 'n_words': 152, 'path': 'Python/.ipynb_checkpoints/visualize-checkpoint.ipynb', 'repo_name': 'denisgriaznov/MyoArmControl', 'size': '1828'}