-
Notifications
You must be signed in to change notification settings - Fork 0
/
PSkelMPPA-noabstractPlot.py
55 lines (42 loc) · 1.51 KB
/
PSkelMPPA-noabstractPlot.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
50
51
52
53
54
55
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
if sys.version_info[0] < 3:
from StringIO import StringIO
else:
from io import StringIO
import matplotlib as mpl
import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np
import pandas as pd
mpl.rcParams['axes.linewidth'] = 1.2
mpl.rcParams['font.size'] = 19
#mpl.rcParams['font.weight'] = 'bold'
markers = ['o','D','s','x']
xs = [2,4,6,8,10,12,14,16]
#Fur Communication
ys = [1.73001, 1.73991, 1.74006, 1.73988, 1.73991, 1.74014, 1.74028, 1.73986]
plt.plot(xs,ys,marker=markers[2],linewidth=2,label='Fur No Abstraction 1000')
# #Fur without Communication
ys = [15.3002, 15.3099, 15.3004, 15.3004, 15.2099, 15.31, 15.3203, 15.3201]
plt.plot(xs,ys,marker=markers[0],linewidth=2,label='Fur No Abstraction 10000')
#Fur Communication
ys = [14.8198, 14.8204, 14.8302, 14.8302, 14.8302, 14.93, 14.8305, 14.8301]
plt.plot(xs,ys,marker=markers[2],linewidth=2,label='Fur Abstraction 1000')
#Fur without Communication
ys = [146.17, 146.18, 146.18, 146.3, 146.29, 146.09, 146.2, 146.18]
plt.plot(xs,ys,marker=markers[0],linewidth=2,label='Fur Abstraction 10000')
plt.xticks([w*2 for w in range(9)])
plt.yticks([0, 1])
plt.xlim(1.8,16.2)
plt.ylim(0,150.7)
plt.xlabel('Number of clusters')
plt.ylabel('Execution Time')
#plt.xlim(-0.15, 2.9)
plt.grid(which='major')
#plt.tick_params(labelsize=12)
#plt.tick_params(pad=10)
plt.tick_params(labelsize=19, pad=5, width=2)
plt.legend(loc='best', fontsize = 'small', ncol=1)
plt.savefig('mppa-communication.pdf')