aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn B. Brandenburg <bbb@cs.unc.edu>2010-06-09 15:16:16 -0400
committerBjörn B. Brandenburg <bbb@cs.unc.edu>2010-06-09 15:16:16 -0400
commit26778e546b294372f84433a5657334b1975e8ae6 (patch)
treece5b388470564a12d9e7c70f51fe23c9de730635
parenta0afdca82d1b408d67c2ae91aa7e888d1db33def (diff)
re-organize options
-rwxr-xr-xplot.py23
1 files changed, 16 insertions, 7 deletions
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
10from gnuplot import gnuplot, FORMATS, Plot, label, curve 10from gnuplot import gnuplot, FORMATS, Plot, label, curve
11 11
12options = [ 12options = [
13 # output options
13 o('-f', '--format', action='store', dest='format', type='choice', 14 o('-f', '--format', action='store', dest='format', type='choice',
14 choices=FORMATS, help='output format'), 15 choices=FORMATS, help='output format'),
16 o(None, '--save-script', action='store_true', dest='save_script'),
17
18 # formatting options
19 # These may or may not be supported by a particular experiment plotter.
15 o(None, '--paper', action='store_true', dest='paper'), 20 o(None, '--paper', action='store_true', dest='paper'),
16 o(None, '--wide', action='store_true', dest='wide'), 21 o(None, '--wide', action='store_true', dest='wide'),
17 o(None, '--column', action='store_true', dest='column'), 22 o(None, '--column', action='store_true', dest='column'),
18 o(None, '--split', action='store_true', dest='split'), 23 o(None, '--split', action='store_true', dest='split'),
19 o(None, '--alternate', action='store_true', dest='alternate'), 24 o(None, '--alternate', action='store_true', dest='alternate'),
20 o(None, '--save-script', action='store_true', dest='save_script'),
21 ] 25 ]
22 26
23defaults = { 27defaults = {
28 # output options
24 'format' : 'show', 29 'format' : 'show',
30 'save_script' : False,
31
32 # formatting options
33 'paper' : False,
34 'split' : False,
35 'wide' : False,
36 'alternate' : False,
37 'column' : False,
38
39 # legacy "options" that are not actually options.
25 'xrange' : (0.5, 32.5), 40 'xrange' : (0.5, 32.5),
26 'yrange' : (-0.05, 1.05), 41 'yrange' : (-0.05, 1.05),
27 'xticks' : (0, 2), 42 'xticks' : (0, 2),
@@ -29,12 +44,6 @@ defaults = {
29 'title' : None, 44 'title' : None,
30 'xlabel' : 'task set utilization cap (prior to inflation)', 45 'xlabel' : 'task set utilization cap (prior to inflation)',
31 'ylabel' : 'ratio of schedulable task sets', 46 'ylabel' : 'ratio of schedulable task sets',
32 'paper' : False,
33 'split' : False,
34 'wide' : False,
35 'alternate' : False,
36 'column' : False,
37 'save_script' : False,
38 } 47 }
39 48
40def decode(name): 49def decode(name):