Commit 60467913 authored by Tomas Krizek's avatar Tomas Krizek

matplotlib: create png images instead of svg by default

parent 2b05c7ed
......@@ -6,7 +6,7 @@ JOBNAME=j$1.$2
# HACK (condor): ensure files for transfer exist to avoid held jobs
touch ${JOBNAME}_report{,.diffrepro}.json
touch ${JOBNAME}_report{,.diffrepro}.txt
touch ${JOBNAME}_histogram.svg
touch ${JOBNAME}_histogram.png
mkdir logs
tar -czf ${JOBNAME}_logs.tar.gz -T /dev/null # empty tar by default
......@@ -83,4 +83,4 @@ time "{{ respdiff['srcdir'] }}/diffrepro.py" -d ${JOBNAME}_report.json .
time "{{ respdiff['srcdir'] }}/diffsum.py" --without-diffrepro -d ${JOBNAME}_report.json . > ${JOBNAME}_report.txt
cp ${JOBNAME}_report{,.diffrepro}.json
time "{{ respdiff['srcdir'] }}/diffsum.py" -d ${JOBNAME}_report.diffrepro.json . > ${JOBNAME}_report.diffrepro.txt
time "{{ respdiff['srcdir'] }}/histogram.py" -o ${JOBNAME}_histogram.svg .
time "{{ respdiff['srcdir'] }}/histogram.py" -o ${JOBNAME}_histogram.png .
......@@ -56,7 +56,7 @@ def condor_submit(txn, priority: int) -> int:
'j$(Cluster).$(Process)_report.diffrepro.json',
'j$(Cluster).$(Process)_report.txt',
'j$(Cluster).$(Process)_report.diffrepro.txt',
'j$(Cluster).$(Process)_histogram.svg',
'j$(Cluster).$(Process)_histogram.png',
'j$(Cluster).$(Process)_logs.tar.gz']),
})
return submit.queue(txn)
......
......@@ -82,8 +82,8 @@ def main():
description='Plot query response time histogram from answers stored '
'in LMDB')
parser.add_argument('-o', '--output', type=str,
default='histogram.svg',
help='output image file (default: histogram.svg)')
default='histogram.png',
help='output image file (default: histogram.png)')
parser.add_argument('-c', '--config', default='respdiff.cfg', dest='cfgpath',
help='config file (default: respdiff.cfg)')
parser.add_argument('envdir', type=str,
......
......@@ -217,7 +217,7 @@ def plot_overview(
plt.tight_layout()
plt.subplots_adjust(top=0.9)
fig.suptitle(label, fontsize=22)
plt.savefig('{}.svg'.format(label))
plt.savefig('{}.png'.format(label))
plt.close()
return passed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment