init
This commit is contained in:
12
python/personal/power_graph.py
Normal file
12
python/personal/power_graph.py
Normal file
@ -0,0 +1,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()
|
||||
Reference in New Issue
Block a user