This commit is contained in:
2025-07-31 12:06:36 -07:00
parent 5f3daf622a
commit 1f8045fc9f

21
python/other/slop.py Normal file
View File

@ -0,0 +1,21 @@
import matplotlib.pyplot as plt
import numpy as np
# Open and read the file
with open(".power_log", "r", encoding="utf-8") as f:
data = f.readlines()
# Extract numerical values from each line
measurements = [float(line.strip()) for line in data]
# Generate time values (assuming measurements are taken every second)
time_values = np.arange(len(measurements))
# Plot the data
plt.figure(figsize=(10, 6))
plt.plot(time_values, measurements, marker='o', linestyle='-')
plt.title('Power Measurements Over Time')
plt.xlabel('Time (seconds)')
plt.ylabel('Power Measurement')
plt.grid(True)
plt.show()