diff options
author | David Robillard <d@drobilla.net> | 2019-04-02 10:04:00 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-02 10:04:00 +0200 |
commit | 8df73c898eabdb04ece53f835acd88dfdb63985a (patch) | |
tree | 37182254d71fd7bad4ef6bffda659d427f024f6e /serd_bench.py | |
parent | 43c56d347ec2fb4a8b39eea9337f6a89b51d458a (diff) | |
download | serd-8df73c898eabdb04ece53f835acd88dfdb63985a.tar.gz serd-8df73c898eabdb04ece53f835acd88dfdb63985a.tar.bz2 serd-8df73c898eabdb04ece53f835acd88dfdb63985a.zip |
Remove Tk dependency from benchmark script
Diffstat (limited to 'serd_bench.py')
-rwxr-xr-x | serd_bench.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/serd_bench.py b/serd_bench.py index 4dda6e36..b34545b0 100755 --- a/serd_bench.py +++ b/serd_bench.py @@ -2,12 +2,12 @@ import csv import itertools -import matplotlib.pyplot as plt +import math +import matplotlib import optparse import os import subprocess import sys -import math class WorkingDirectory: @@ -76,6 +76,10 @@ def get_dashes(): def plot(in_file, out_filename, x_label, y_label, y_max=None): "Plot a TSV file as SVG" + + matplotlib.use('agg') + import matplotlib.pyplot as plt + fig_height = 4.0 dashes = get_dashes() markers = itertools.cycle(['o', 's', 'v', 'D', '*', 'p', 'P', 'h', 'X']) |