diff options
| author | Andrea Bastoni <bastoni@sprg.uniroma2.it> | 2010-04-21 22:47:07 -0400 |
|---|---|---|
| committer | Andrea Bastoni <bastoni@sprg.uniroma2.it> | 2010-04-21 22:47:07 -0400 |
| commit | 3ccfe7790cb0a678f635895e20a359eb89f6f712 (patch) | |
| tree | a15ea09350bc17c77fac67b1c46cc7a778a5f14b /plot_pm2.py | |
| parent | cf47870875e03488442ed39d96acfddfa2993f02 (diff) | |
Changes made to manually tweak plots for april version of ospert10ospert10-plot-april-submission
Diffstat (limited to 'plot_pm2.py')
| -rwxr-xr-x | plot_pm2.py | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/plot_pm2.py b/plot_pm2.py index c2fcbf3..914c4f4 100755 --- a/plot_pm2.py +++ b/plot_pm2.py | |||
| @@ -13,7 +13,7 @@ import stats | |||
| 13 | import defapp | 13 | import defapp |
| 14 | 14 | ||
| 15 | from plot import decode | 15 | from plot import decode |
| 16 | from gnuplot import gnuplot, FileGraph, FORMATS | 16 | from gnuplot import gnuplot, FileGraph, FORMATS, gnuplot_cmd |
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | 19 | ||
| @@ -410,8 +410,8 @@ class CyclePlotter(defapp.App): | |||
| 410 | 410 | ||
| 411 | fname = "%s_full_%s" % (name, kind) | 411 | fname = "%s_full_%s" % (name, kind) |
| 412 | 412 | ||
| 413 | gnuplot(graphs, xlabel=xlabel, ylabel=ylabel, title=title, fname=fname, | 413 | #gnuplot(graphs, xlabel=xlabel, ylabel=ylabel, title=title, fname=fname, |
| 414 | yrange=yrange, logscale=axis, format=self.options.format) | 414 | # yrange=yrange, logscale=axis, format=self.options.format) |
| 415 | 415 | ||
| 416 | # per-sample delta measures | 416 | # per-sample delta measures |
| 417 | for offset, kind, long in [(0, 'avg', 'average'), (2, 'wc', 'maximum')]: | 417 | for offset, kind, long in [(0, 'avg', 'average'), (2, 'wc', 'maximum')]: |
| @@ -429,8 +429,22 @@ class CyclePlotter(defapp.App): | |||
| 429 | yrange = None | 429 | yrange = None |
| 430 | 430 | ||
| 431 | fname = "%s_delta_%s" % (name, kind) | 431 | fname = "%s_delta_%s" % (name, kind) |
| 432 | gnuplot(graphs, xlabel=xlabel, ylabel=ylabel, title=title, fname=fname, | 432 | figname = "fig_" + fname |
| 433 | yrange=yrange, logscale=axis, format=self.options.format) | 433 | cmd = gnuplot_cmd(graphs, |
| 434 | xlabel=xlabel, | ||
| 435 | ylabel=ylabel, | ||
| 436 | yrange=yrange, | ||
| 437 | logscale=axis, | ||
| 438 | title=title, | ||
| 439 | format=self.options.format, | ||
| 440 | fname=figname) | ||
| 441 | f = open("%s.plot" % figname, "w") | ||
| 442 | f.write(str(cmd)) | ||
| 443 | f.close() | ||
| 444 | del f | ||
| 445 | |||
| 446 | #gnuplot(graphs, xlabel=xlabel, ylabel=ylabel, title=title, fname=fname, | ||
| 447 | # yrange=yrange, logscale=axis, format=self.options.format) | ||
| 434 | 448 | ||
| 435 | graphs = [] | 449 | graphs = [] |
| 436 | for (x, y, yminus, tag, idx) in columns: | 450 | for (x, y, yminus, tag, idx) in columns: |
| @@ -446,8 +460,8 @@ class CyclePlotter(defapp.App): | |||
| 446 | yrange = None | 460 | yrange = None |
| 447 | 461 | ||
| 448 | fname = "%s_delta-h_%s" % (name, kind) | 462 | fname = "%s_delta-h_%s" % (name, kind) |
| 449 | gnuplot(graphs, xlabel=xlabel, ylabel=ylabel, title=title, fname=fname, | 463 | #gnuplot(graphs, xlabel=xlabel, ylabel=ylabel, title=title, fname=fname, |
| 450 | yrange=yrange, logscale=axis, format=self.options.format) | 464 | # yrange=yrange, logscale=axis, format=self.options.format) |
| 451 | 465 | ||
| 452 | # del tmp | 466 | # del tmp |
| 453 | 467 | ||
