-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexp7.py
More file actions
19 lines (14 loc) · 1.21 KB
/
exp7.py
File metadata and controls
19 lines (14 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from krrt.stats.plots import *
xs = [[0.0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95],
[0.0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95],
[0.0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95]]
ys = [[1.0, 1.0, 0.997, 0.995, 0.986, 0.989, 0.979, 0.966, 0.959, 0.954, 0.909, 0.91, 0.89, 0.903, 0.879, 0.866, 0.852, 0.843, 0.823, 0.788],
[1.0, 0.701, 0.618, 0.527, 0.467, 0.447, 0.434, 0.42, 0.391, 0.366, 0.378, 0.365, 0.37, 0.374, 0.375, 0.347, 0.337, 0.348, 0.332, 0.326],
[1.0, 0.714, 0.507, 0.408, 0.326, 0.3, 0.237, 0.235, 0.208, 0.207, 0.205, 0.211, 0.21, 0.219, 0.22, 0.214, 0.187, 0.194, 0.201, 0.168]]
plot(xs, ys, x_label=r'Environment Variability ($\alpha$)', y_label='Success Rate', col=False, xyline=False, no_scatter=True, names=[r'\textsc{TpopExec}', 'Opportunistic', 'STN Dispatch'], minY=0)
# Changes to krrt:
# - 'legend.fontsize': 11,
# + 'legend.fontsize': 8,
#
# - pylab.legend(handles, names, loc="best")
# + pylab.legend(handles, names, loc=(0.44,0.44))