From ee994acc67a6d6a67d8413f7c1724cbae3d3ea41 Mon Sep 17 00:00:00 2001 From: Christopher Kenna Date: Fri, 14 Oct 2011 01:56:58 -0400 Subject: cosmetic tweaks --- plot_rtas12.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'plot_rtas12.py') diff --git a/plot_rtas12.py b/plot_rtas12.py index c248b95..f4deef9 100755 --- a/plot_rtas12.py +++ b/plot_rtas12.py @@ -50,9 +50,9 @@ def get_sched_title(sched): return SCHEDULERS[sched] def get_overhead_title(ov): - OV = {'SCHED': '(A + B + C)', + OV = {'SCHED': '(A, B, C)', 'LVLA-SCHED': '(A)', - 'RELEASE': '(A + B + C)', + 'RELEASE': '(A, B, C)', 'LVLA-RELEASE': '(A)'} return OV[ov] @@ -157,17 +157,18 @@ def plot_release(data_dir, ycol, title, fname): refs.append(ref) else: fname = '{0}/scheduler={1}_overhead={2}.csv'.format(data_dir, sched, o_type) - ti = '{0}{1}'.format(get_sched_title(sched), get_overhead_title(o_type)) + ti = '{0} {1}'.format(get_sched_title(sched), get_overhead_title(o_type)) p.curves += [curve(fname=fname, xcol=gnuplot_col('n_tasks'), ycol=ycol, title=ti)] p.xlabel = 'number of tasks' p.ylabel = 'overhead (microseconds)' set_plot_opts(p) - if ycol == gnuplot_col('max'): - # worst-case release gets the key + if gnuplot_col('avg') == ycol: + # make this graph's y-scale match the scale on the average-case + # scheduling overhead graph because they are next to each other + p.yrange = (0, 16) + # it gets the key p.key = 'top left' - # make the graph tall so the damn key fits - p.yrange = (0, 80) p.gnuplot_exec() def plot_sched(data_dir, ycol, title, fname): @@ -178,7 +179,7 @@ def plot_sched(data_dir, ycol, title, fname): for o_type in ['SCHED', 'LVLA-SCHED']: for sched in SCHEDULERS: fname = '{0}/scheduler={1}_overhead={2}.csv'.format(data_dir, sched, o_type) - ti = '{0}{1}'.format(get_sched_title(sched), get_overhead_title(o_type)) + ti = '{0} {1}'.format(get_sched_title(sched), get_overhead_title(o_type)) p.curves += [curve(fname=fname, xcol=gnuplot_col('n_tasks'), ycol=ycol, title=ti)] p.xlabel = 'number of tasks' -- cgit v1.2.2