-
Notifications
You must be signed in to change notification settings - Fork 0
/
draw.py
29 lines (24 loc) · 802 Bytes
/
draw.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import matplotlib.pyplot as plt
def draw_2d(x, y, tag):
plt.xticks(fontsize=20)
plt.yticks(fontsize=20)
plt.plot(x, 'r-')
plt.plot(y, 'g-')
#plt.plot([0, 35], [average, average], 'r-')
#plt.xlabel('Runtime (day)', fontsize = 20)
#plt.ylabel('IO_Time/Runtime ', fontsize = 20)
plt.xlabel('time', fontsize = 20)
plt.ylabel(tag, fontsize = 20)
label = ["read", "write"]
plt.legend(label, loc = 1, ncol = 1)
plt.show()
def draw_d(x,tag):
plt.xticks(fontsize=20)
plt.plot(x, 'r-')
#plt.plot([0, 35], [average, average], 'r-')
#plt.xlabel('Runtime (day)', fontsize = 20)
#plt.ylabel('IO_Time/Runtime ', fontsize = 20)
plt.xlabel('time', fontsize = 20)
# label = ["read"]
# plt.legend(label, loc = 1, ncol = 1)
plt.show()