forked from andaok/python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchart3.py
More file actions
29 lines (21 loc) · 703 Bytes
/
chart3.py
File metadata and controls
29 lines (21 loc) · 703 Bytes
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
# -*- encoding:utf-8 -*-
import matplotlib.pyplot as plt
import numpy as np
import array
x = np.arange(100,3300,200)
v1 = np.array([96011.67,82609.12,75431.84,70707.36,71116.67,66424.88,65974.38,67154.66,66755.67,63181.57,67642.52,62684.92,59915.41,53795.83,50845.56,50872.98])
v2 = np.array([52.08,60.53,66.29,70.71,70.31,75.27,75.79,74.46,74.91,79.14,73.92,79.76,83.45,92.94,98.34,98.28])
plt.axis([0,3100,-10,10])
plt.figure(1)
plt.subplot(211)
plt.plot(x,v1,'bo-')
plt.ylabel("QPS")
plt.xlabel("Concurrent Number")
plt.grid(True)
plt.subplot(212)
plt.plot(x,v2,'bo-')
plt.xlabel("Concurrent Number")
plt.ylabel("Elapsed Time")
plt.grid(True)
plt.savefig("File/chart3.png",dpi=75)
plt.show()