Mercurial > hg > aimc
changeset 140:3cd890830891
- Offscreen plotting
author | tomwalters |
---|---|
date | Mon, 01 Nov 2010 01:36:44 +0000 |
parents | a06ab1d44e43 |
children | bbf4728ffa0e |
files | experiments/scripts/cnbh-syllables/results_plotting/plot_munged_results.py |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/experiments/scripts/cnbh-syllables/results_plotting/plot_munged_results.py Mon Nov 01 01:29:33 2010 +0000 +++ b/experiments/scripts/cnbh-syllables/results_plotting/plot_munged_results.py Mon Nov 01 01:36:44 2010 +0000 @@ -6,8 +6,11 @@ import numpy as np import pylab as p +import matplotlib as mpl +mpl.use('PDF') import matplotlib.pyplot as plt + f=open("results_test_all.csv","r") results = dict() for line in f: @@ -23,7 +26,7 @@ snr = 50 else: snr = int(values[2]) - results[values[3]][values[0]][values[1]][int(values[4])][int(values[5])][int(vlues[6])][snr] = float(values[7]) + results[values[3]][values[0]][values[1]][int(values[4])][int(values[5])][int(values[6])][snr] = float(values[7]) # results[values[3]].append((values[1],values[2],values[2],values[4])) ax = plt.subplot(111) @@ -47,4 +50,4 @@ p.legend(lines, labels, 'upper left', shadow=True) p.xlabel('SNR/dB') p.ylabel('Recognition performance %') -plt.show() +plt.savefig(output_file)