diff options
author | David Robillard <d@drobilla.net> | 2022-06-12 19:26:04 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-06-12 21:04:21 -0400 |
commit | d124ac405cfa08152d1f440e8dbe479084a3d23e (patch) | |
tree | 7e42c9a36005ed9341c4d79d854cc2e32c3b9104 /scripts | |
parent | 7b4298638cdc7cc8f359587cf47e37655b6eb309 (diff) | |
download | serd-d124ac405cfa08152d1f440e8dbe479084a3d23e.tar.gz serd-d124ac405cfa08152d1f440e8dbe479084a3d23e.tar.bz2 serd-d124ac405cfa08152d1f440e8dbe479084a3d23e.zip |
Update benchmarks
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/serd_bench.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/serd_bench.py b/scripts/serd_bench.py index 2ecaf8eb..683ce7c4 100755 --- a/scripts/serd_bench.py +++ b/scripts/serd_bench.py @@ -81,7 +81,9 @@ def plot(in_file, out_filename, x_label, y_label, y_max=None): matplotlib.use("agg") import matplotlib.pyplot as plt - fig_height = 4.0 + plt.rcParams.update({'font.size': 7}) + + fig_height = 1.8 dashes = get_dashes() markers = itertools.cycle(["o", "s", "v", "D", "*", "p", "P", "h", "X"]) @@ -115,8 +117,8 @@ def plot(in_file, out_filename, x_label, y_label, y_max=None): linewidth=1.0, ) - plt.legend() - plt.savefig(out_filename, bbox_inches="tight", pad_inches=0.025) + plt.legend(labelspacing=0.25) + plt.savefig(out_filename, bbox_inches="tight", pad_inches=0.125) plt.close() sys.stderr.write("wrote {}\n".format(out_filename)) |