diff options
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 | ||