From 38e4029048bb693525369ea7eb0e639f73844ed2 Mon Sep 17 00:00:00 2001 From: Jonathan Herman Date: Thu, 2 May 2013 15:49:11 -0400 Subject: Added --collapse option to parse_exps.py for creating simpler graphs. This creates csvs which have merged the lines which only differ by variables whose values are numbers (e.g. 'wss', 'number of tasks', or 'duration', but not 'scheduler'). For example, consider a csv which is tracking the change in working set sizes. There are 3 different experiment configurations per WSS, one with 12 tasks, one for 14, and another for 16. Without --collapse, a seperate csv (and line to plot in plot_exps.py) will be created for each of the 12, 14, and 16 configurations. With --collapse, a single csv (and a single line plotted by plot_exps.py) will be created which averages the values of 12, 14, and 16 tasks for each WSS. This is very useful for noticing trends or presenting overhead bar charts or other examples in papers. --- plot_exps.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plot_exps.py') diff --git a/plot_exps.py b/plot_exps.py index 15c54d0..2d6f06b 100755 --- a/plot_exps.py +++ b/plot_exps.py @@ -85,12 +85,12 @@ def plot_by_variable(details): axes.set_title(details.title) lines, labels = zip(*style_map.get_key()) - axes.legend(tuple(lines), tuple(labels), prop={'size':10}) + axes.legend(tuple(lines), tuple(labels), prop={'size':10}, loc=2) axes.set_ylabel(details.value) axes.set_xlabel(details.variable) - axes.set_xlim(0, axes.get_xlim()[1] + 1) - axes.set_ylim(0, axes.get_ylim()[1] + 1) + axes.set_xlim(0, axes.get_xlim()[1]) + axes.set_ylim(0, axes.get_ylim()[1]) plot.savefig(details.out, format=OUT_FORMAT) -- cgit v1.2.2