-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlotMergeByteSizeDuration.py
50 lines (41 loc) · 1.15 KB
/
PlotMergeByteSizeDuration.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import argparse
import matplotlib
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
parser = argparse.ArgumentParser()
parser.add_argument('paths', nargs='+')
args = parser.parse_args()
df = pd.concat((pd.read_csv(p) for p in args.paths), ignore_index=True)
fig, axs = plt.subplots()
# sns.lineplot(ax=axs[0, 0],
# x='timestamp',
# y='sendDataRate',
# hue='fd',
# data=df,
# palette='Set1')
# axs[0, 0].set_title('sendDataRate')
#
# sns.lineplot(ax=axs[1, 0],
# x='timestamp',
# y='sendBufferFillLevel',
# hue='fd',
# data=df,
# palette='Set1')
# axs[1, 0].set_title('sendBufferFillLevel')
sns.lineplot(x='byteSize',
y='duration',
hue='link',
data=df,
palette='Set1')
axs.set_title('recvDataRate')
# sns.lineplot(ax=axs[1, 1],
# x='timestamp',
# y='recvBufferFillLevel',
# hue='fd',
# data=df,
# palette='Set1')
# axs[1, 1].set_title('recvBufferFillLevel')
plt.xlim(0, 1000)
plt.ylim(0, 5)
plt.show()