cleanup harmonic-phase plot
authorDan White <dan@whiteaudio.com>
Sun, 9 Feb 2014 22:13:59 +0000 (16:13 -0600)
committerDan White <dan@whiteaudio.com>
Sun, 9 Feb 2014 22:14:55 +0000 (16:14 -0600)
python-lib/test-data/chip14/arb0/harmonic-sin-phase/harmonic-phase.pdf
python-lib/test-data/chip14/arb0/harmonic-sin-phase/harmonic-phase.py

index ade28e324a28894e739c28c4eb04e0c083165fe2..806024a488c92fbcd131457f8e05ac0e0fc9edaa 100644 (file)
Binary files a/python-lib/test-data/chip14/arb0/harmonic-sin-phase/harmonic-phase.pdf and b/python-lib/test-data/chip14/arb0/harmonic-sin-phase/harmonic-phase.pdf differ
index 124f324071f6bd453397c24b8b69220fe047035a..1f29e995e84b9ef555874f799b17525d831e0959 100644 (file)
@@ -8,7 +8,7 @@ from glob import glob
 
 
 close('all')
-fig = figure(figsize=(6.5, 4.0))
+fig = figure(figsize=(6.0, 3.5))
 subplots_adjust(top=0.97, bottom=0.15, left=0.15, right=0.98)
 
 for name in glob('arb0-*5.0-*.npz'):
@@ -38,7 +38,7 @@ for name in glob('arb0-*5.0-*.npz'):
     if (1.0*fsin/fh % 2) == 1:
         style = '.b'
         text(180, 0.2,
-             'h=%i'%(fsin/fh),
+             'n=%i'%(fsin/fh),
              horizontalalignment='center')
     else:
         style = '+g'
@@ -48,8 +48,10 @@ for name in glob('arb0-*5.0-*.npz'):
     ylim([-0.8, 0.8])
     xlim([0, 360])
 
+    hlines(0, 0, 360, linewidth=0.5, color='0.40')
+
     ax = plt.gca()
-    xticks = range(0, 361, 45)
+    xticks = range(0, 361, 90)
     ax.set_xticks(xticks)
     ax.set_xticklabels([''] * len(xticks))