TCAS fig, cleanup for clarity
authorDan White <dan@whiteaudio.com>
Fri, 20 Feb 2015 20:56:09 +0000 (14:56 -0600)
committerDan White <dan@whiteaudio.com>
Fri, 20 Feb 2015 20:56:09 +0000 (14:56 -0600)
python-lib/test-data/chip01/chip01-channels.pdf
python-lib/test-data/chip02/chip02-channels.pdf
python-lib/test-data/chip02/stats.py

index aec246cc036d3b3d8afab0ade028d9dbb08948cf..d7c58f3ba469d058ba62f8b11493e8ff883b56f9 100644 (file)
Binary files a/python-lib/test-data/chip01/chip01-channels.pdf and b/python-lib/test-data/chip01/chip01-channels.pdf differ
index e82a3ccd89358484b49280af939f2bd6f6955a10..29fb9220c83f48c308dbd407d25556ce696ba8c4 100644 (file)
Binary files a/python-lib/test-data/chip02/chip02-channels.pdf and b/python-lib/test-data/chip02/chip02-channels.pdf differ
index 0e7ab7ec6510fb510040ef6ba7f63c5503c989c5..dfd70eb64bc5a4c0fc1811f1ed43937edc6a75db 100644 (file)
@@ -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',