From: Dan White Date: Fri, 20 Feb 2015 20:56:09 +0000 (-0600) Subject: TCAS fig, cleanup for clarity X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=a98b8b0d70db6bebbe416a30f157e8d229a8c9c8;p=430.git TCAS fig, cleanup for clarity --- diff --git a/python-lib/test-data/chip01/chip01-channels.pdf b/python-lib/test-data/chip01/chip01-channels.pdf index aec246c..d7c58f3 100644 Binary files a/python-lib/test-data/chip01/chip01-channels.pdf and b/python-lib/test-data/chip01/chip01-channels.pdf differ diff --git a/python-lib/test-data/chip02/chip02-channels.pdf b/python-lib/test-data/chip02/chip02-channels.pdf index e82a3cc..29fb922 100644 Binary files a/python-lib/test-data/chip02/chip02-channels.pdf and b/python-lib/test-data/chip02/chip02-channels.pdf differ diff --git a/python-lib/test-data/chip02/stats.py b/python-lib/test-data/chip02/stats.py index 0e7ab7e..dfd70eb 100644 --- a/python-lib/test-data/chip02/stats.py +++ b/python-lib/test-data/chip02/stats.py @@ -109,7 +109,7 @@ if 0: interactive(False) -if 1: +if 0: figure(figsize=(5.0, 3.5)) subplots_adjust(top=0.93, bottom=0.12, left=0.10, right=0.98) data = cv.flatten() @@ -166,24 +166,42 @@ if 1: print 'good channels:', c figure(figsize=(3.5, 2.0)) - subplots_adjust(top=0.98, bottom=0.18, left=0.16, right=0.98) + subplots_adjust(top=0.98, bottom=0.18, left=0.13, right=0.99) #x = range(len(means)) - errorbar(good_x, good_means, yerr=good_stdds, fmt='.', label='Good') - errorbar(bad_x, bad_means, yerr=bad_stdds, fmt='x', label='Bad') + errorbar(good_x, good_means, + yerr=good_stdds, + label='Good', + fmt='.', + markersize=4, + linewidth=0.4, + capsize=1, + ) + errorbar(bad_x, bad_means, + yerr=bad_stdds, + label='Bad', + fmt='x', + markersize=4, + linewidth=0.4, + capsize=1, + ) #hlines([-10, 10], 0, 96, linewidth=1.0, color='g') hlines([0], 0, 96, linewidth=0.4, color='black') xlim((0, 96)) - xticks(range(0, 97, 16)) + xticks(range(0, 90, 16)) + xlabel('Channel index') - yticks(range(-200, 60, 50), fontsize='small') + yticks(range(-200, 60, 50), + fontsize='small', + position=(0.01,0),) ylim((-200, 80)) + ax = gca() + ax.yaxis.set_label_coords(-0.100, 0.5) + ylabel(r'$V_{oos}$, $\bar x$, $\sigma$ (mV)') legend(loc='lower left', frameon=False, fontsize='small') - xlabel('Channel index') - ylabel(r'$V_{oos}$, $\bar x$, $\sigma$ (mV)') #title('%i acceptable channels' % c) text(48, -100, '%i acceptable\nchannels' % c, horizontalalignment='center',