First steps towards reworking the build system... again.

This commit is contained in:
David Given
2023-10-21 23:02:46 +02:00
parent bbdfa0d651
commit f5f223f622
175 changed files with 2159 additions and 1068 deletions

View File

@@ -12,6 +12,7 @@ data = numpy.loadtxt(open("driveresponse.csv", "rb"), delimiter=",", skiprows=1)
labels = data[:, 0]
frequencies = data[:, 1:]
# Scale the frequencies.
def scaled(row):
m = row.mean()
@@ -20,13 +21,21 @@ def scaled(row):
else:
return row
scaledfreq = numpy.array([scaled(row) for row in frequencies])
# Create new Figure with black background
fig = plt.figure(figsize=(8, 8), facecolor='#aaa')
fig = plt.figure(figsize=(8, 8), facecolor="#aaa")
plt.imshow(scaledfreq, extent=[0, 512/TICKS_PER_US, labels[0], labels[-1]], cmap='jet',
vmin=0, vmax=1, origin='lower', aspect='auto')
plt.imshow(
scaledfreq,
extent=[0, 512 / TICKS_PER_US, labels[0], labels[-1]],
cmap="jet",
vmin=0,
vmax=1,
origin="lower",
aspect="auto",
)
plt.colorbar()
plt.ylabel("Interval period (us)")
plt.xlabel("Response (us)")