diff options
Diffstat (limited to 'plot.py')
-rwxr-xr-x | plot.py | 23 |
1 files changed, 16 insertions, 7 deletions
@@ -10,18 +10,33 @@ from tempfile import NamedTemporaryFile as Tmp | |||
10 | from gnuplot import gnuplot, FORMATS, Plot, label, curve | 10 | from gnuplot import gnuplot, FORMATS, Plot, label, curve |
11 | 11 | ||
12 | options = [ | 12 | options = [ |
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 | ||
23 | defaults = { | 27 | defaults = { |
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 | ||
40 | def decode(name): | 49 | def decode(name): |