diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2011-12-29 17:45:17 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2011-12-29 17:45:17 -0500 |
commit | 32ffc6bf28d1fa152fcdde5189cca46417e94e99 (patch) | |
tree | ed580d548f1922ecc9ca28c86f6cdd4e1468b8bc | |
parent | 1592f13345ec22d786ae0eca862b9b890dce0348 (diff) |
Easier to parse lines for lvls a, b, and c
-rwxr-xr-x | plot_rtas12.py | 44 |
1 files changed, 28 insertions, 16 deletions
diff --git a/plot_rtas12.py b/plot_rtas12.py index 825827d..6d1d408 100755 --- a/plot_rtas12.py +++ b/plot_rtas12.py | |||
@@ -72,7 +72,7 @@ def set_plot_opts(opts, p): | |||
72 | p.default_style += ' smooth bezier' | 72 | p.default_style += ' smooth bezier' |
73 | p.key = 'off' | 73 | p.key = 'off' |
74 | p.monochrome = False | 74 | p.monochrome = False |
75 | p.dashed_lines = False | 75 | p.dashed_lines = True |
76 | p.xrange = (18, 122) | 76 | p.xrange = (18, 122) |
77 | p.yrange = (0, '') | 77 | p.yrange = (0, '') |
78 | 78 | ||
@@ -94,21 +94,31 @@ def set_plot_opts(opts, p): | |||
94 | for i, c in enumerate(p.curves): | 94 | for i, c in enumerate(p.curves): |
95 | c.style = "linespoints ls %d" % (i + 1) | 95 | c.style = "linespoints ls %d" % (i + 1) |
96 | 96 | ||
97 | try: | 97 | # try: |
98 | # don't use yellow if we have this curve | 98 | # # don't use yellow if we have this curve |
99 | p.curves[5].style = "linespoints ls 7" | 99 | # p.curves[5].style = "linespoints ls 7" |
100 | except IndexError: | 100 | # except IndexError: |
101 | pass | 101 | # pass |
102 | 102 | ||
103 | p.line_styles = [ | 103 | p.line_styles = [ |
104 | (1, "lw {0} ps {1}".format(line_width, point_size)), | 104 | (1, 'lt 1 pt 1 lw {0} ps {1} lc rgbcolor "#ff0000"'.format(line_width, point_size)), |
105 | (2, "lw {0} ps {1}".format(line_width, point_size)), | 105 | (2, 'lt 1 pt 4 lw {0} ps {1} lc rgbcolor "#00ff00"'.format(line_width, point_size)), |
106 | (3, "lw {0} ps {1}".format(line_width, point_size)), | 106 | (3, 'lt 1 pt 7 lw {0} ps {1} lc rgbcolor "#0000ff"'.format(line_width, point_size)), |
107 | (4, "lw {0} ps {1}".format(line_width, point_size)), | 107 | (4, 'lt 2 pt 1 lw {0} ps {1} lc rgbcolor "#ff0000"'.format(line_width, point_size)), |
108 | (5, 'pt 6 lw {0} ps {1} lc rgbcolor "#ff910d"'.format(line_width, point_size)), | 108 | (5, 'lt 2 pt 4 lw {0} ps {1} lc rgbcolor "#00ff00"'.format(line_width, point_size)), |
109 | (6, "pt 7 lw {0} ps {1}".format(line_width, point_size)), | 109 | (6, 'lt 2 pt 7 lw {0} ps {1} lc rgbcolor "#0000ff"'.format(line_width, point_size)), |
110 | (7, 'lw {0} ps {1} lc rgbcolor "#000000"'.format(line_width, point_size)), | 110 | (7, 'lt 3 pt 1 lw {0} ps {1} lc rgbcolor "#ff0000"'.format(line_width, point_size)), |
111 | (8, "lw {0} ps {1}".format(line_width, point_size)), | 111 | (8, 'lt 3 pt 4 lw {0} ps {1} lc rgbcolor "#00ff00"'.format(line_width, point_size)), |
112 | (9, 'lt 3 pt 7 lw {0} ps {1} lc rgbcolor "#0000ff"'.format(line_width, point_size)), | ||
113 | # (1, 'lw {0} ps {1} lc rgbcolor "#ff0000"'.format(line_width, point_size)), | ||
114 | # (2, "lw {0} ps {1} lt 2".format(line_width, point_size)), | ||
115 | # (3, "lw {0} ps {1} lt3 ".format(line_width, point_size)), | ||
116 | # (4, "lw {0} ps {1}".format(line_width, point_size)), | ||
117 | # (5, 'pt 6 lw {0} ps {1} lc rgbcolor "#ff910d"'.format(line_width, point_size)), | ||
118 | # (6, "pt 7 lw {0} ps {1}".format(line_width, point_size)), | ||
119 | # (7, 'lw {0} ps {1} lc rgbcolor "#000000"'.format(line_width, point_size)), | ||
120 | # (8, "lw {0} ps {1}".format(line_width, point_size)), | ||
121 | # (9, "lw {0} ps {1}".format(line_width, point_size)), | ||
112 | ] | 122 | ] |
113 | 123 | ||
114 | 124 | ||
@@ -171,7 +181,8 @@ def plot_release(opts, data_dir, ycol, title, fname): | |||
171 | p.output = '{0}/{1}'.format(data_dir, fname) | 181 | p.output = '{0}/{1}'.format(data_dir, fname) |
172 | refs = [] # need to save reference to file handle so it is not deleted | 182 | refs = [] # need to save reference to file handle so it is not deleted |
173 | 183 | ||
174 | for o_type in ['LVLA-RELEASE','LVLB-RELEASE', 'LVLC-RELEASE']: | 184 | # for o_type in ['LVLA-RELEASE','LVLB-RELEASE', 'LVLC-RELEASE']: |
185 | for o_type in ['LVLA-RELEASE','LVLC-RELEASE']: | ||
175 | for sched in SCHEDULERS: | 186 | for sched in SCHEDULERS: |
176 | # if o_type == 'RELEASE': | 187 | # if o_type == 'RELEASE': |
177 | # # we have to make the regular release include the level-A | 188 | # # we have to make the regular release include the level-A |
@@ -217,7 +228,8 @@ def plot_sched(opts, data_dir, ycol, title, fname): | |||
217 | p = Plot() | 228 | p = Plot() |
218 | p.output = '{0}/{1}'.format(data_dir, fname) | 229 | p.output = '{0}/{1}'.format(data_dir, fname) |
219 | 230 | ||
220 | for o_type in ['LVLA-SCHED','LVLB-SCHED','LVLC-SCHED']: | 231 | # for o_type in ['LVLA-SCHED','LVLB-SCHED','LVLC-SCHED']: |
232 | for o_type in ['LVLA-SCHED','LVLC-SCHED']: | ||
221 | for sched in SCHEDULERS: | 233 | for sched in SCHEDULERS: |
222 | fname = '{0}/scheduler={1}_overhead={2}.csv'.format(data_dir, sched, o_type) | 234 | fname = '{0}/scheduler={1}_overhead={2}.csv'.format(data_dir, sched, o_type) |
223 | ti = '{0} {1}'.format(get_sched_title(sched), get_overhead_title(o_type)) | 235 | ti = '{0} {1}'.format(get_sched_title(sched), get_overhead_title(o_type)) |