summaryrefslogtreecommitdiffstats
path: root/mictoled/pdmgen/plot.py
blob: daa238ce427b5ff0861345525e520b36c8d8ba09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python
import sys
import numpy as np
import matplotlib.pyplot as pp

pdm = np.fromfile("pdm.npy", np.int8)

pdm_decim = np.sum(pdm.reshape(-1, 64), axis=1)

fig = pp.figure()
fig.suptitle("PDM decimated")
ax1 = fig.add_subplot(1, 1, 1)
ax1.plot(pdm_decim)

pp.show()