Mercurial > hg > aimc
comparison trunk/experiments/scripts/cnbh-syllables/results_plotting/spider_plot.py @ 392:54f8691e271a
- Maybe, just maybe
author | tomwalters |
---|---|
date | Tue, 14 Sep 2010 01:30:44 +0000 |
parents | 3907c7937be5 |
children |
comparison
equal
deleted
inserted
replaced
391:3907c7937be5 | 392:54f8691e271a |
---|---|
6 """ | 6 """ |
7 | 7 |
8 import sys | 8 import sys |
9 import getopt | 9 import getopt |
10 import matplotlib as mpl | 10 import matplotlib as mpl |
11 matplotlib.use('PDF') | 11 mpl.use('PDF') |
12 import numpy as np | 12 import numpy as np |
13 import pylab as p | 13 import pylab as p |
14 import mpl_toolkits.mplot3d.axes3d as p3 | 14 import mpl_toolkits.mplot3d.axes3d as p3 |
15 from matplotlib import cm | 15 from matplotlib import cm |
16 import matplotlib.ticker as ticker | 16 import matplotlib.ticker as ticker |
38 except getopt.error, msg: | 38 except getopt.error, msg: |
39 raise Usage(msg) | 39 raise Usage(msg) |
40 | 40 |
41 # defaults | 41 # defaults |
42 input_file = "results_iteration_15.txt" | 42 input_file = "results_iteration_15.txt" |
43 output_filename = "results_iteration_15.png" | 43 output_file = "results_iteration_15.png" |
44 | 44 |
45 # option processing | 45 # option processing |
46 for option, value in opts: | 46 for option, value in opts: |
47 if option in ("-h", "--help"): | 47 if option in ("-h", "--help"): |
48 raise Usage(help_message) | 48 raise Usage(help_message) |
120 #for a in ax.w_yaxis.get_ticklines()+ax.w_yaxis.get_ticklabels(): | 120 #for a in ax.w_yaxis.get_ticklines()+ax.w_yaxis.get_ticklabels(): |
121 # a.set_visible(False) | 121 # a.set_visible(False) |
122 | 122 |
123 | 123 |
124 #p.show() | 124 #p.show() |
125 p.savefig(output_filename) | 125 p.savefig(output_file) |
126 | 126 |
127 if __name__ == "__main__": | 127 if __name__ == "__main__": |
128 sys.exit(main()) | 128 sys.exit(main()) |