From 26778e546b294372f84433a5657334b1975e8ae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20B=2E=20Brandenburg?= Date: Wed, 9 Jun 2010 15:16:16 -0400 Subject: re-organize options --- plot.py | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'plot.py') diff --git a/plot.py b/plot.py index b23f2c5..f1b073c 100755 --- a/plot.py +++ b/plot.py @@ -10,18 +10,33 @@ from tempfile import NamedTemporaryFile as Tmp from gnuplot import gnuplot, FORMATS, Plot, label, curve options = [ + # output options o('-f', '--format', action='store', dest='format', type='choice', choices=FORMATS, help='output format'), + o(None, '--save-script', action='store_true', dest='save_script'), + + # formatting options + # These may or may not be supported by a particular experiment plotter. o(None, '--paper', action='store_true', dest='paper'), o(None, '--wide', action='store_true', dest='wide'), o(None, '--column', action='store_true', dest='column'), o(None, '--split', action='store_true', dest='split'), o(None, '--alternate', action='store_true', dest='alternate'), - o(None, '--save-script', action='store_true', dest='save_script'), ] defaults = { + # output options 'format' : 'show', + 'save_script' : False, + + # formatting options + 'paper' : False, + 'split' : False, + 'wide' : False, + 'alternate' : False, + 'column' : False, + + # legacy "options" that are not actually options. 'xrange' : (0.5, 32.5), 'yrange' : (-0.05, 1.05), 'xticks' : (0, 2), @@ -29,12 +44,6 @@ defaults = { 'title' : None, 'xlabel' : 'task set utilization cap (prior to inflation)', 'ylabel' : 'ratio of schedulable task sets', - 'paper' : False, - 'split' : False, - 'wide' : False, - 'alternate' : False, - 'column' : False, - 'save_script' : False, } def decode(name): -- cgit v1.2.2