- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot.py
More file actions
Latest commit
23 lines (16 loc) · 355 Bytes
/
Copy pathplot.py
File metadata and controls
23 lines (16 loc) · 355 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
importmatplotlib.pyplotasplt
x= []
y= []
file=open("plot.txt", "r")
lines=file.read().split("\n")
forlineinlines:
tmp=line.split()
iflen(tmp) >=2:
x.append(float(tmp[0]))
y.append(int(tmp[1]))
plt.figure()
plt.plot(x, y)
plt.ylabel("Time, ms")
plt.xlabel("LoadFactor")
plt.savefig('src/plot.jpg')
plt.show()