- # We split the data into two plots so it's easier to read
- lower = ['basel_1thr', 'basel_2thr', 'basel_4thr', 'lttng_1thr', 'lttng_2thr', 'lttng_4thr']
- lower_color = ['lightcoral', 'gray', 'chartreuse', 'red', 'black', 'forestgreen']
- upper = ['basel_8thr', 'basel_16thr', 'lttng_8thr', 'lttng_16thr']
- upper_color = ['deepskyblue', 'orange', 'mediumblue', 'saddlebrown']
+ # We map all test configurations and their
+ # respective color
+ conf_to_color = OrderedDict([
+ ('basel_1thr','lightcoral'),
+ ('lttng_1thr','red'),
+ ('basel_2thr','gray'),
+ ('lttng_2thr','black'),
+ ('basel_4thr','chartreuse'),
+ ('lttng_4thr','forestgreen'),
+ ('basel_8thr','deepskyblue'),
+ ('lttng_8thr','mediumblue'),
+ ('basel_16thr','orange'),
+ ('lttng_16thr','saddlebrown')])
+
+ # We create a list for each of the subplots
+ baseline = [x for x in conf_to_color.keys() if 'basel' in x]
+ lttng = [x for x in conf_to_color.keys() if 'lttng' in x]
+ one_thr = [x for x in conf_to_color.keys() if '_1thr' in x]
+ two_thr = [x for x in conf_to_color.keys() if '_2thr' in x]
+ four_thr = [x for x in conf_to_color.keys() if '_4thr' in x]
+ eight_thr = [x for x in conf_to_color.keys() if '_8thr' in x]
+ sixteen_thr = [x for x in conf_to_color.keys() if '_16thr' in x]
+
+ plots = [baseline, lttng, one_thr, two_thr, four_thr, eight_thr, sixteen_thr]