Mercurial > hg > aimc
changeset 110:4d408e0d5643
- Matplotlib backend setting
author | tomwalters |
---|---|
date | Tue, 14 Sep 2010 01:27:06 +0000 |
parents | 6dd58b8aad1e |
children | f54d91957fec |
files | experiments/scripts/cnbh-syllables/results_plotting/spider_plot.py experiments/scripts/cnbh-syllables/run_training_and_testing/run_test_instance.sh |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/experiments/scripts/cnbh-syllables/results_plotting/spider_plot.py Tue Sep 14 01:19:58 2010 +0000 +++ b/experiments/scripts/cnbh-syllables/results_plotting/spider_plot.py Tue Sep 14 01:27:06 2010 +0000 @@ -7,10 +7,11 @@ import sys import getopt +import matplotlib as mpl +matplotlib.use('PDF') import numpy as np import pylab as p import mpl_toolkits.mplot3d.axes3d as p3 -import matplotlib as mpl from matplotlib import cm import matplotlib.ticker as ticker
--- a/experiments/scripts/cnbh-syllables/run_training_and_testing/run_test_instance.sh Tue Sep 14 01:19:58 2010 +0000 +++ b/experiments/scripts/cnbh-syllables/run_training_and_testing/run_test_instance.sh Tue Sep 14 01:27:06 2010 +0000 @@ -98,7 +98,7 @@ # Count the number of instances of each talker appearing in the list of errors. grep Aligned $WORKING_DIRECTORY/$hmm_type/${RESULTS_FILE}_iteration_$iter| sed -E "s/.*\/..\/([a-z]{2})([0-9]{2,3}\.[0-9])p([0-9]{2,3}\.[0-9])s.*/\2p\3s/" | sort | uniq -c > $WORKING_DIRECTORY/$hmm_type/${MISCLASSIFIED}_iteration_$iter python ./cnbh-syllables/results_plotting/gen_results.py --input_file=$WORKING_DIRECTORY/$hmm_type/${MISCLASSIFIED}_iteration_$iter --train_talkers=$WORKING_DIRECTORY/training_talkers --test_talkers=$WORKING_DIRECTORY/testing_talkers --spoke_pattern=$SPOKE_PATTERN_FILE > $WORKING_DIRECTORY/$hmm_type/results_iteration_${iter}.txt - python ./cnbh-syllables/results_plotting/spider_plot.py --input_file=$WORKING_DIRECTORY/$hmm_type/results_iteration_${iter}.txt --output_file=$WORKING_DIRECTORY/$hmm_type/results_iteration_${iter}.png + python ./cnbh-syllables/results_plotting/spider_plot.py --input_file=$WORKING_DIRECTORY/$hmm_type/results_iteration_${iter}.txt --output_file=$WORKING_DIRECTORY/$hmm_type/results_iteration_${iter}.pdf done touch $WORKING_DIRECTORY/$hmm_type/.hmm_success