# HG changeset patch # User tomwalters # Date 1284427626 0 # Node ID 63d3cdf1aff29940dfeb529e3b5f0eb03ff33da2 # Parent 6b10f79a123a74e5e9ca41557d0312903e9eb24a - Matplotlib backend setting diff -r 6b10f79a123a -r 63d3cdf1aff2 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 6b10f79a123a -r 63d3cdf1aff2 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