# HG changeset patch # User tomwalters # Date 1284427626 0 # Node ID 4d408e0d56436fa5ecc18e0109faa3914ccd4218 # Parent 6dd58b8aad1e86413582df4e79c6038874bd7cf9 - Matplotlib backend setting diff -r 6dd58b8aad1e -r 4d408e0d5643 experiments/scripts/cnbh-syllables/results_plotting/spider_plot.py --- 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 diff -r 6dd58b8aad1e -r 4d408e0d5643 experiments/scripts/cnbh-syllables/run_training_and_testing/run_test_instance.sh --- 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