summaryrefslogtreecommitdiff
path: root/python/personal/power_graph.py
blob: fda2f64d1886a55d4eed269de614469d9f6a7b78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import matplotlib.pyplot as plt
import numpy as np
import io

f = open(".power_log", "r", encoding="utf-8")

data = f.readlines()
x = np.arange(len(data))
y = np.loadtxt(".power_log")

plt.plot(x,y)
plt.show()