Skip to content
Snippets Groups Projects
Commit 3113eb5e authored by IntanP's avatar IntanP
Browse files

add npy

parent 7c8183f3
Branches master
No related tags found
No related merge requests found
import numpy as np
import datetime as dt
import matplotlib.pyplot as plt
file_name = "measurement_20180119.npy"
data = np.load(file_name)
print data
# Convert the timestamp to
time = [dt.datetime.fromtimestamp(ele[0]/1000).strftime('%Y-%m-%d %H:%M:%S') for ele in data]
#plotting the data
fig, ax = plt.subplots()
#ax.plot(time, data[:,1])
ax.plot(data[:,1])
plt.show()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment