diff options
author | David Robillard <d@drobilla.net> | 2014-10-01 03:10:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-10-01 03:10:53 +0000 |
commit | dee23c2058fd33e14610ceda277c11e4d8ce768b (patch) | |
tree | 0fec107d46edad1eb63db6afab5f351463aa7ed4 /plot.py | |
parent | b7d81e0674af26a326fad1d600012d1a9e2a05ae (diff) | |
download | zix-dee23c2058fd33e14610ceda277c11e4d8ce768b.tar.gz zix-dee23c2058fd33e14610ceda277c11e4d8ce768b.tar.bz2 zix-dee23c2058fd33e14610ceda277c11e4d8ce768b.zip |
Automatic benchmarking with 'waf bench'.
git-svn-id: http://svn.drobilla.net/zix/trunk@94 df6676b4-ccc9-40e5-b5d6-7c4628a128e3
Diffstat (limited to 'plot.py')
-rwxr-xr-x | plot.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -34,7 +34,8 @@ class SensibleScalarFormatter(matplotlib.ticker.ScalarFormatter): self.set_scientific(True) -n_plots = len(sys.argv) - 2 +file_prefix = os.path.commonprefix(sys.argv[1:]) +n_plots = len(sys.argv) - 2 for i in range(n_plots): filename = sys.argv[i+2] file = open(filename, 'r') @@ -80,7 +81,7 @@ for i in range(n_plots): labelspacing=0.10, columnspacing=0, framealpha=0.90) - pyplot.title(os.path.splitext(os.path.basename(filename))[0].title()) + pyplot.title(os.path.splitext(filename[len(file_prefix):])[0].title()) # out = filename.replace('.dat', '.png') # print('Writing %s' % out) |