#!/usr/bin/env python
import dspplot

data = [
8.6736173798840355e-17,
-0.00094780184325440539,
-0.0040586017630596972,
-0.010091990738547989,
-0.02017397040168014,
-0.035594271416900927,
-0.057538243033405587,
-0.086771019411292991,
-0.12329871877239169,
-0.16603852994613053,
-0.21253549517676695,
-0.25876717150618062,
-0.29907672832105969,
-0.32626931614561944,
  -0.331895219303666,
-0.30672668551515297,
-0.24141460791923056,
-0.12728846266565946,
0.042759234272422002,
 0.27338118934157868,
  0.5659655061669786,
 0.91799999999999893,
  1.3226955497412054,
   1.768935479117661,
  2.2415906271025583,
  2.7222054807048539,
  3.1900230504015341,
  3.6232792956737074,
  4.0006662387149579,
  4.3028404137279281,
  4.5138430205056057,
  4.6223017484089972,
  4.6223017484089972,
  4.5138430205056066,
  4.3028404137279299,
  4.0006662387149587,
  3.6232792956737088,
  3.1900230504015363,
   2.722205480704857,
  2.2415906271025596,
  1.7689354791176646,
   1.322695549741211,
 0.91800000000000181,
 0.56596550616697971,
 0.27338118934158034,
0.042759234272423924,
-0.12728846266565824,
-0.24141460791923069,
-0.30672668551515242,
-0.33189521930366594,
-0.32626931614561944,
-0.29907672832105986,
-0.25876717150618073,
-0.21253549517676695,
-0.16603852994613039,
-0.12329871877239147,
-0.086771019411292782,
-0.057538243033406641,
-0.035594271416900414,
-0.020173970401680813,
-0.010091990738547996,
-0.0040586017630597215,
-0.00094780184325415559,
8.6736173798840355e-17,
]
dspplot.plot(data, freqresp=True, dots=True, padwidth=1024, log_freq=False, horizontal=False, normalized_freq=True, title='Flat top window', file='../svg/window_flattop.svg')

#!/usr/bin/env python
import dspplot

data = [
8.6736173798840355e-17,
-0.00094780184325440539,
-0.0040586017630596972,
-0.010091990738547989,
-0.02017397040168014,
-0.035594271416900927,
-0.057538243033405587,
-0.086771019411292991,
-0.12329871877239169,
-0.16603852994613053,
-0.21253549517676695,
-0.25876717150618062,
-0.29907672832105969,
-0.32626931614561944,
  -0.331895219303666,
-0.30672668551515297,
-0.24141460791923056,
-0.12728846266565946,
0.042759234272422002,
 0.27338118934157868,
  0.5659655061669786,
 0.91799999999999893,
  1.3226955497412054,
   1.768935479117661,
  2.2415906271025583,
  2.7222054807048539,
  3.1900230504015341,
  3.6232792956737074,
  4.0006662387149579,
  4.3028404137279281,
  4.5138430205056057,
  4.6223017484089972,
  4.6223017484089972,
  4.5138430205056066,
  4.3028404137279299,
  4.0006662387149587,
  3.6232792956737088,
  3.1900230504015363,
   2.722205480704857,
  2.2415906271025596,
  1.7689354791176646,
   1.322695549741211,
 0.91800000000000181,
 0.56596550616697971,
 0.27338118934158034,
0.042759234272423924,
-0.12728846266565824,
-0.24141460791923069,
-0.30672668551515242,
-0.33189521930366594,
-0.32626931614561944,
-0.29907672832105986,
-0.25876717150618073,
-0.21253549517676695,
-0.16603852994613039,
-0.12329871877239147,
-0.086771019411292782,
-0.057538243033406641,
-0.035594271416900414,
-0.020173970401680813,
-0.010091990738547996,
-0.0040586017630597215,
-0.00094780184325415559,
8.6736173798840355e-17,
]
dspplot.plot(data, freqresp=True, dots=True, padwidth=1024, log_freq=False, horizontal=False, normalized_freq=True, title='Flat top window', file='../svg/window_flattop.svg')

#!/usr/bin/env python