In [2]:
import pandas as pd
from IPython.display import display
import matplotlib.pyplot as plt
%matplotlib inline
df = pd.read_csv('adc-read-sine--2017-05-03.txt')
df_clipped = pd.read_csv('adc-read-sine--clipped--2017-05-03.txt')
df.VALUE=list(map(lambda x: int(x,16),df.VALUE))
df_clipped.VALUE=list(map(lambda x: int(x,16),df_clipped.VALUE))
plt.figure()
plt.rcParams['figure.figsize']=16,10
df.plot()
plt.figure()
plt.rcParams['figure.figsize']=16,10
df_clipped.plot()
Out[2]:
<matplotlib.axes._subplots.AxesSubplot at 0x108d90d30>
<matplotlib.figure.Figure at 0x106856a90>
<matplotlib.figure.Figure at 0x1068d41d0>
In [1]:
f = open('upper_clipped_sine.txt')
plt.figure()
plt.rcParams['figure.figsize']=16,10
plt.plot([int(l, 16) for l in f.readline().split(' ')])
f.close()
f = open('middle_sine_wrap.txt')
plt.figure()
plt.rcParams['figure.figsize']=16,10
plt.plot([int(l, 16) for l in f.readline().split(' ')])
f.close()
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-1-8c1b50f6afee> in <module>()
1 f = open('upper_clipped_sine.txt')
----> 2 plt.figure()
3 plt.rcParams['figure.figsize']=16,10
4 plt.plot([int(l, 16) for l in f.readline().split(' ')])
5 f.close()
NameError: name 'plt' is not defined
In [3]:
f = open('middle_sine_2.txt')
plt.figure()
plt.rcParams['figure.figsize']=16,10
plt.plot([int(l, 16) for l in f.readline().split(' ')])
f.close()
In [3]:
f = open('correct_data_format_idle.txt')
plt.figure()
plt.rcParams['figure.figsize']=16,10
plt.plot([int(l, 16) for l in f.readline().split(' ')])
f.close()
In [10]:
f = open('broken_fir.txt')
plt.figure()
plt.rcParams['figure.figsize']=16,10
plt.plot([int(l, 16) for l in f.readline().split(' ')])
f.close()
In [7]:
import scipy.stats
f = open('scaling.txt')
plt.figure()
plt.rcParams['figure.figsize']=16,10
x = [int(l, 16) / 2**16 * 2.2 - 1.1 for l in f.readline().split(' ')]
#0.2789 in scope
plt.plot(x)
f.close()
In [8]:
import scipy.stats
f = open('measured_07-08.txt')
plt.figure()
plt.rcParams['figure.figsize']=16,10
x = [int(l, 16) / 2**14 * 2.2 - 1.1 for l in f.readline().split(' ')]
print(x)
#0.2789 in scope
plt.plot(x)
f.close()
[4.234301757812501, 5.021838378906251, 5.69671630859375, 6.218518066406251, 6.55380859375, 6.676806640625001, 6.581201171875, 6.275988769531251, 5.781445312500001, 5.126574707031251, 4.35152587890625, 3.50625, 2.6429809570312504, 1.8169067382812503, 1.0790527343750003, 0.47708740234375013, 0.04766845703125, -0.18181152343750007, -0.19752197265625004, 0.0028198242187500444, 0.40471191406249996, 0.9843872070312503, 1.7055908203125, 2.521728515625, 3.3829833984375006, 4.2326904296875, 5.0208984375, 5.695507812500001, 6.2183837890625, 6.55340576171875, 6.6760009765625, 6.580798339843751, 6.27545166015625, 5.781176757812501, 5.126574707031251, 4.35152587890625, 3.5058471679687506, 2.64351806640625, 1.817041015625, 1.0797241210937503, 0.47722167968749996, 0.04807128906249991, -0.18167724609375002, -0.19752197265625004, 0.0021484375000000444, 0.4044433593750001, 0.9841186523437502, 1.7050537109375004, 2.52159423828125, 3.38204345703125, 4.232958984375001, 5.0206298828125, 5.6957763671875, 6.218115234375, 6.55380859375, 6.676538085937501, 6.581201171875, 6.27572021484375, 5.781445312500001, 5.1269775390625, 4.351391601562501, 3.50625, 2.643115234375, 1.8166381835937502, 1.0797241210937503, 0.47749023437500004, 0.047802734375000044, -0.18221435546874998, -0.19725341796875007, 0.002416992187499911, 0.4051147460937501, 0.9846557617187499, 1.7051879882812502, 2.5218627929687503, 3.38284912109375, 4.2337646484375, 5.0206298828125, 5.696044921875, 6.218249511718751, 6.55367431640625, 6.67667236328125, 6.581469726562501, 6.27652587890625, 5.782519531250001, 5.127783203125, 4.35260009765625, 3.50625, 2.6440551757812503, 1.8175781250000003, 1.07999267578125, 0.47708740234375013, 0.047802734375000044, -0.18221435546874998, -0.19725341796875007, 0.0028198242187500444, 0.40538330078124996, 0.9853271484374999, 1.7061279296875003, 2.52266845703125, 3.3835205078125, 4.234301757812501, 5.02197265625, 5.696582031250001, 6.21865234375, 6.55380859375, 6.676806640625001, 6.58133544921875, 6.276123046875, 5.781848144531251, 5.1269775390625, 4.352062988281251, 3.5061157226562503, 2.64324951171875, 1.8167724609375, 1.07891845703125, 0.4769531250000001, 0.04807128906249991, -0.18167724609375002, -0.19698486328124998, 0.0028198242187500444, 0.40592041015625013, 0.9853271484374999, 1.70626220703125, 2.52266845703125, 3.38338623046875, 4.2337646484375, 5.02130126953125, 5.69564208984375, 6.21878662109375, 6.55340576171875, 6.676806640625001, 6.581066894531251, 6.275585937500001, 5.781176757812501, 5.12630615234375, 4.35098876953125, 3.5054443359375003, 2.64244384765625, 1.8166381835937502, 1.07864990234375, 0.47681884765625004, 0.04739990234374991, -0.18194580078125, -0.19752197265625004, 0.002282714843750089, 0.40471191406249996, 0.9847900390625002, 1.7054565429687503, 2.5219970703125, 3.3825805664062503, 4.233630371093751, 5.0206298828125, 5.6957763671875, 6.21798095703125, 6.553271484375001, 6.676135253906251, 6.580798339843751, 6.275317382812501, 5.781176757812501, 5.125903320312501, 4.351123046875001, 3.50557861328125, 2.6423095703125004, 1.81610107421875, 1.078515625, 0.47614746093750004, 0.046862792968749956, -0.18302001953125002, -0.19886474609375004, 0.0016113281250000888, 0.4041748046875, 0.9847900390625002, 1.7055908203125, 2.5218627929687503, 3.3831176757812504, 4.233630371093751, 5.02130126953125, 5.696179199218751, 6.21878662109375, 6.553942871093751, 6.67694091796875, 6.581066894531251, 6.275048828125, 5.78104248046875, 5.12630615234375, 4.3505859375, 3.50504150390625, 2.64190673828125, 1.8158325195312504, 1.078515625, 0.4766845703125, 0.047534179687499956, -0.1826171875, -0.19725341796875007, 0.002282714843750089, 0.40457763671875013, 0.9842529296875, 1.7050537109375004, 2.5219970703125, 3.3823120117187506, 4.233227539062501, 5.020764160156251, 5.6957763671875, 6.218115234375, 6.553271484375001, 6.6760009765625, 6.58052978515625, 6.275585937500001, 5.781176757812501, 5.125903320312501, 4.3508544921875, 3.5051757812500006, 2.642578125, 1.8159667968750002, 1.078515625, 0.47641601562500013, 0.047131347656250044, -0.18275146484375004, -0.19779052734375002, 0.00201416015625, 0.40471191406249996, 0.9850585937500003, 1.7055908203125, 2.52239990234375, 3.3825805664062503, 4.23349609375, 5.021166992187501, 5.695910644531251, 6.217846679687501, 6.553540039062501, 6.676403808593751, 6.580395507812501, 6.274914550781251, 5.7806396484375, 5.12576904296875, 4.3508544921875, 3.50504150390625, 2.6423095703125004, 1.8155639648437503, 1.07784423828125, 0.47614746093750004, 0.046862792968749956, -0.18288574218749998, -0.19846191406250002, 0.0021484375000000444, 0.40457763671875013, 0.9842529296875, 1.70465087890625, 2.52105712890625, 3.3819091796875003, 4.232421875, 5.020495605468751, 5.6957763671875, 6.21798095703125, 6.552600097656251, 6.6760009765625, 6.57999267578125, 6.274914550781251, 5.78037109375, 5.125903320312501, 4.3505859375, 3.50504150390625, 2.64217529296875, 1.8155639648437503, 1.07864990234375, 0.47574462890625013, 0.04659423828125009, -0.18275146484375004, -0.19819335937500004, 0.0016113281250000888, 0.4041748046875, 0.9842529296875, 1.705322265625, 2.5219970703125, 3.38271484375, 4.23416748046875, 5.020495605468751, 5.69564208984375, 6.21771240234375, 6.5530029296875, 6.6760009765625, 6.57999267578125, 6.27451171875, 5.7806396484375, 5.12576904296875, 4.34991455078125, 3.50504150390625, 2.6413696289062503, 1.8152954101562502, 1.077978515625, 0.47601318359375, 0.04632568359375, -0.18288574218749998, -0.19752197265625004, 0.0025512695312499556, 0.40498046875000004, 0.9851928710937501, 1.7058593750000002, 2.5225341796875003, 3.3831176757812504, 4.23416748046875, 5.02130126953125, 5.695507812500001, 6.217846679687501, 6.55313720703125, 6.6760009765625, 6.58052978515625, 6.275048828125, 5.7806396484375, 5.125634765625, 4.350048828125001, 3.5046386718750004, 2.6416381835937504, 1.8152954101562502, 1.0777099609375003, 0.47574462890625013, 0.04605712890624991, -0.18315429687500007, -0.19832763671874998, 0.0017456054687499112, 0.4041748046875, 0.9842529296875, 1.7047851562500003, 2.5221313476562504, 3.3829833984375006, 4.2337646484375, 5.020495605468751, 5.69510498046875, 6.217578125000001, 6.5530029296875, 6.675732421875001, 6.580395507812501, 6.27451171875, 5.77969970703125, 5.124157714843751, 4.34951171875, 3.5041015625000003, 2.64110107421875, 1.8148925781250003, 1.07784423828125, 0.47520751953124996, 0.04605712890624991, -0.18315429687500007, -0.19832763671874998, 0.0012084960937499556, 0.40430908203125004, 0.9834472656250002, 1.7043823242187504, 2.5211914062500003, 3.382177734375, 4.23309326171875, 5.02022705078125, 5.69564208984375, 6.217578125000001, 6.552868652343751, 6.675732421875001, 6.57999267578125, 6.27451171875, 5.78023681640625, 5.125231933593751, 4.34951171875, 3.50369873046875, 2.64110107421875, 1.8152954101562502, 1.0781127929687502, 0.47601318359375, 0.04632568359375, -0.18342285156250004, -0.19832763671874998, 0.0012084960937499556, 0.40350341796875, 0.9833129882812499, 1.70465087890625, 2.52132568359375, 3.382177734375, 4.232958984375001, 5.020495605468751, 5.69564208984375, 6.21744384765625, 6.55340576171875, 6.675866699218751, 6.58026123046875, 6.274914550781251, 5.780773925781251, 5.125634765625, 4.350720214843751, 3.50504150390625, 2.64190673828125, 1.8154296875, 1.07784423828125, 0.47574462890625013, 0.04659423828125009, -0.18288574218749998, -0.19805908203125, 0.0021484375000000444, 0.40484619140625, 0.9843872070312503, 1.7057250976562504, 2.52239990234375, 3.3835205078125, 4.234033203125, 5.02103271484375, 5.696044921875, 6.218115234375, 6.553540039062501, 6.6760009765625, 6.58026123046875, 6.27545166015625, 5.780908203125, 5.125903320312501, 4.3505859375, 3.5046386718750004, 2.64150390625, 1.8154296875, 1.0783813476562503, 0.47601318359375, 0.047534179687499956, -0.18248291015625007, -0.1973876953125, 0.003088378906249911, 0.40538330078124996, 0.9845214843750001, 1.70599365234375, 2.5228027343750004, 3.3831176757812504, 4.234033203125, 5.0217041015625, 5.695910644531251, 6.2183837890625, 6.5530029296875, 6.675732421875001, 6.580395507812501, 6.275048828125, 5.781176757812501, 5.125903320312501, 4.3503173828125, 3.50504150390625, 2.6416381835937504, 1.8158325195312504, 1.0783813476562503, 0.47655029296874996, 0.04672851562499991, -0.18248291015625007, -0.19752197265625004, 0.00201416015625, 0.40524902343750013, 0.9857299804687503, 1.7061279296875003, 2.5230712890625, 3.3837890625000004, 4.234570312500001, 5.021838378906251, 5.69644775390625, 6.2183837890625, 6.55340576171875, 6.676403808593751, 6.58026123046875, 6.27451171875, 5.779833984375001, 5.125500488281251, 4.3503173828125, 3.5049072265625, 2.64217529296875, 1.8155639648437503, 1.078515625, 0.47614746093750004, 0.0469970703125, -0.18248291015625007, -0.19725341796875007, 0.0025512695312499556, 0.40484619140625, 0.9850585937500003, 1.7055908203125, 2.522265625, 3.38338623046875, 4.234033203125, 5.02156982421875, 5.6957763671875, 6.218115234375, 6.553942871093751, 6.67626953125, 6.5806640625, 6.275048828125, 5.780908203125, 5.125634765625, 4.3503173828125, 3.5051757812500006, 2.64190673828125, 1.8156982421875, 1.07864990234375, 0.4766845703125, 0.04766845703125, -0.18248291015625007, -0.1973876953125, 0.002282714843750089, 0.40498046875000004, 0.9850585937500003, 1.70626220703125, 2.52333984375, 3.3844604492187504, 4.23551025390625, 5.022509765625001, 5.6973876953125, 6.218920898437501, 6.55447998046875, 6.677075195312501, 6.581201171875, 6.275585937500001, 5.781176757812501, 5.125500488281251, 4.350720214843751, 3.5053100585937504, 2.6420410156250003, 1.8156982421875, 1.0783813476562503, 0.47655029296874996, 0.047534179687499956, -0.18194580078125, -0.1973876953125, 0.0025512695312499556, 0.40538330078124996, 0.985595703125, 1.7063964843750004, 2.5230712890625, 3.38419189453125, 4.234301757812501, 5.022509765625001, 5.69644775390625, 6.21878662109375, 6.554345703125, 6.67667236328125, 6.580798339843751, 6.27518310546875, 5.780773925781251, 5.12630615234375, 4.351123046875001, 3.5049072265625, 2.6423095703125004, 1.8162353515625003, 1.07864990234375, 0.4762817382812501, 0.04739990234374991, -0.18288574218749998, -0.19819335937500004, 0.002416992187499911, 0.40457763671875013, 0.9845214843750001, 1.705322265625, 2.52239990234375, 3.3832519531250003, 4.234301757812501, 5.021435546875001, 5.69644775390625, 6.218249511718751, 6.55380859375, 6.676806640625001, 6.581201171875, 6.275317382812501, 5.781176757812501, 5.12603759765625, 4.3505859375, 3.5053100585937504, 2.6420410156250003, 1.81610107421875, 1.0787841796875002, 0.47655029296874996, 0.047131347656250044, -0.18234863281250002, -0.19711914062500002, 0.0028198242187500444, 0.40565185546875004, 0.9854614257812502, 1.70626220703125, 2.5230712890625, 3.3839233398437503, 4.234570312500001, 5.022106933593751, 5.696850585937501, 6.219189453125001, 6.553942871093751, 6.676806640625001, 6.581066894531251, 6.27572021484375, 5.781848144531251, 5.12711181640625, 4.35166015625, 3.5059814453125004, 2.6428466796875, 1.81610107421875, 1.0790527343750003, 0.47641601562500013, 0.0469970703125, -0.18248291015625007, -0.1973876953125, 0.002954101562500089, 0.4057861328125001, 0.9857299804687503, 1.7067993164062503, 2.5232055664062503, 3.3843261718750006, 4.234973144531251, 5.02291259765625, 5.697521972656251, 6.21878662109375, 6.5540771484375, 6.677209472656251, 6.58133544921875, 6.276123046875, 5.781445312500001, 5.126171875000001, 4.35125732421875, 3.505712890625, 2.6420410156250003, 1.8158325195312504, 1.0782470703125, 0.47614746093750004, 0.04766845703125, -0.18167724609375002, -0.19685058593750004, 0.0032226562499999556, 0.40592041015625013, 0.9864013671875003, 1.7072021484375002, 2.52374267578125, 3.3843261718750006, 4.235241699218751, 5.021838378906251, 5.697119140625, 6.21905517578125, 6.5540771484375, 6.676403808593751, 6.580395507812501, 6.27518310546875, 5.7806396484375, 5.1253662109375, 4.35018310546875, 3.5043701171875, 2.64110107421875, 1.8151611328125004, 1.077978515625, 0.47641601562500013, 0.04659423828125009, -0.18234863281250002, -0.19779052734375002, 0.002685546875, 0.40538330078124996, 0.9851928710937501, 1.70626220703125, 2.5228027343750004, 3.3835205078125, 4.234570312500001, 5.0217041015625, 5.69671630859375, 6.218518066406251, 6.55380859375, 6.676538085937501, 6.580395507812501, 6.27518310546875, 5.780773925781251, 5.1253662109375, 4.3503173828125, 3.5049072265625, 2.64190673828125, 1.8152954101562502, 1.0781127929687502, 0.47587890624999996, 0.04632568359375, -0.18275146484375004, -0.19819335937500004, 0.0021484375000000444, 0.40484619140625, 0.9850585937500003, 1.70626220703125, 2.52266845703125, 3.38419189453125, 4.234570312500001, 5.021838378906251, 5.697253417968751, 6.21878662109375, 6.554211425781251, 6.67694091796875, 6.5809326171875, 6.2747802734375, 5.780908203125, 5.1253662109375, 4.350048828125001, 3.50423583984375, 2.6413696289062503, 1.8148925781250003, 1.077978515625, 0.47574462890625013, 0.04726562500000009, -0.18248291015625007, -0.1973876953125, 0.00201416015625, 0.40457763671875013, 0.9846557617187499, 1.7057250976562504, 2.5221313476562504, 3.3831176757812504, 4.234033203125, 5.02130126953125, 5.696044921875, 6.21865234375, 6.553540039062501, 6.6760009765625, 6.57999267578125, 6.275048828125, 5.780908203125, 5.1253662109375, 4.349780273437501, 3.5045043945312506, 2.6412353515625, 1.8152954101562502, 1.07784423828125, 0.47587890624999996, 0.0469970703125, -0.1826171875, -0.19779052734375002, 0.002416992187499911, 0.40484619140625, 0.985595703125, 1.7063964843750004, 2.5228027343750004, 3.3835205078125, 4.234301757812501, 5.02197265625, 5.696582031250001, 6.218518066406251, 6.553540039062501, 6.676135253906251, 6.57999267578125, 6.27437744140625, 5.78037109375, 5.125231933593751, 4.350048828125001, 3.5043701171875, 2.6409667968750004, 1.8146240234375002, 1.07730712890625, 0.47547607421875004, 0.04632568359375, -0.18342285156250004, -0.19765624999999998, 0.0025512695312499556, 0.40524902343750013, 0.9853271484374999, 1.7057250976562504, 2.522265625, 3.3829833984375006, 4.2337646484375, 5.02103271484375, 5.695910644531251, 6.21771240234375, 6.55340576171875, 6.675866699218751, 6.580126953125001, 6.274645996093751, 5.78023681640625, 5.12509765625, 4.349108886718751, 3.503564453125, 2.6404296875, 1.81475830078125, 1.07730712890625, 0.47574462890625013, 0.046459960937500044, -0.18275146484375004, -0.19792480468750007, 0.0018798828124999556, 0.40498046875000004, 0.9850585937500003, 1.7063964843750004, 2.52293701171875, 3.38338623046875, 4.234973144531251, 5.021435546875001, 5.696179199218751, 6.218920898437501, 6.55340576171875, 6.676403808593751, 6.57999267578125, 6.27518310546875, 5.780505371093751, 5.124829101562501, 4.349377441406251, 3.5038330078125006, 2.64056396484375, 1.8139526367187502, 1.0766357421875, 0.4749389648437501, 0.04592285156250009, -0.18275146484375004, -0.19792480468750007, 0.0021484375000000444, 0.40538330078124996, 0.9853271484374999, 1.7065307617187502, 2.5238769531250003, 3.3839233398437503, 4.234973144531251, 5.022106933593751, 5.696850585937501, 6.218518066406251, 6.55380859375, 6.67626953125, 6.580395507812501, 6.274645996093751, 5.7806396484375, 5.12509765625, 4.34964599609375, 3.50369873046875, 2.64083251953125, 1.8146240234375002, 1.07730712890625, 0.47520751953124996, 0.04592285156250009, -0.18369140625000002, -0.19819335937500004, 0.0021484375000000444, 0.40457763671875013, 0.98492431640625, 1.70599365234375, 2.52266845703125, 3.3836547851562506, 4.234033203125, 5.021838378906251, 5.6963134765625, 6.218249511718751, 6.55340576171875, 6.6760009765625, 6.58026123046875, 6.27437744140625, 5.779296875, 5.1240234375, 4.348706054687501, 3.5032958984375004, 2.6402954101562504, 1.8139526367187502, 1.07650146484375, 0.47480468750000004, 0.04592285156250009, -0.18369140625000002, -0.19819335937500004, 0.0016113281250000888, 0.40457763671875013, 0.9850585937500003, 1.7055908203125, 2.5225341796875003, 3.38338623046875, 4.234033203125, 5.021435546875001, 5.695910644531251, 6.217846679687501, 6.55313720703125, 6.675732421875001, 6.5793212890625, 6.2737060546875, 5.779431152343751, 5.124560546875001, 4.348974609375, 3.503564453125, 2.6406982421875003, 1.81435546875, 1.07730712890625, 0.47467041015625, 0.045788574218750044, -0.18342285156250004, -0.19846191406250002, 0.0013427734375, 0.4041748046875, 0.9847900390625002, 1.7057250976562504, 2.52239990234375, 3.3836547851562506, 4.23416748046875, 5.021435546875001, 5.696179199218751, 6.2183837890625, 6.553271484375001, 6.67626953125, 6.580126953125001, 6.27451171875, 5.780102539062501, 5.1253662109375, 4.349780273437501, 3.50423583984375, 2.6412353515625, 1.8148925781250003, 1.0774414062500002, 0.47520751953124996, 0.046459960937500044, -0.18315429687500007, -0.19779052734375002, 0.0025512695312499556, 0.40524902343750013, 0.9857299804687503, 1.7067993164062503, 2.5236083984375, 3.3844604492187504, 4.235107421875, 5.022106933593751, 5.697253417968751, 6.218518066406251, 6.553942871093751, 6.676403808593751, 6.58052978515625, 6.274645996093751, 5.780102539062501, 5.12496337890625, 4.34951171875, 3.5038330078125006, 2.6409667968750004, 1.8142211914062503, 1.0770385742187503, 0.47547607421875004, 0.046459960937500044, -0.18275146484375004, -0.1973876953125, 0.002954101562500089, 0.4051147460937501, 0.985595703125, 1.70599365234375, 2.5234741210937504, 3.3837890625000004, 4.23470458984375, 5.021838378906251, 5.6963134765625, 6.2183837890625, 6.553271484375001, 6.67559814453125, 6.579724121093751, 6.2747802734375, 5.779833984375001, 5.12469482421875, 4.34951171875, 3.50423583984375, 2.64150390625, 1.81502685546875, 1.0781127929687502, 0.47587890624999996, 0.045788574218750044, -0.18288574218749998, -0.19765624999999998, 0.002416992187499911, 0.405517578125, 0.9864013671875003, 1.70693359375, 2.52374267578125, 3.38486328125, 4.235644531250001, 5.022778320312501, 5.6973876953125, 6.21905517578125, 6.5540771484375, 6.676806640625001, 6.58052978515625, 6.27437744140625, 5.779162597656251, 5.12509765625, 4.34951171875, 3.5038330078125006, 2.64110107421875, 1.8148925781250003, 1.07784423828125, 0.475341796875, 0.04632568359375, -0.1826171875, -0.19765624999999998, 0.002954101562500089, 0.40538330078124996, 0.985595703125, 1.7067993164062503, 2.5234741210937504, 3.3845947265625003, 4.234973144531251, 5.0222412109375, 5.697119140625, 6.21878662109375, 6.553942871093751, 6.67626953125, 6.580395507812501, 6.275048828125, 5.7806396484375, 5.12509765625, 4.34964599609375, 3.5041015625000003, 2.64083251953125, 1.8146240234375002, 1.0774414062500002, 0.47547607421875004, 0.04659423828125009, -0.18234863281250002, -0.1973876953125, 0.0028198242187500444, 0.40524902343750013, 0.985595703125, 1.7072021484375002, 2.5241455078125004, 3.3852661132812503]
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-1f3aa5c0f643> in <module>()
6 x = [int(l, 16) / 2**14 * 2.2 - 1.1 for l in f.readline().split(' ')]
7 print(x)
----> 8 print('[' + ','.join(x) + ']')
9 #0.2789 in scope
10 plt.plot(x)
TypeError: sequence item 0: expected str instance, float found
<matplotlib.figure.Figure at 0x108d89438>
Content source: alpenwasser/pitaya
Similar notebooks: