demo_tss.py: add plotting
authorPaul Brossier <piem@piem.org>
Fri, 27 Jul 2012 16:36:58 +0000 (10:36 -0600)
committerPaul Brossier <piem@piem.org>
Fri, 27 Jul 2012 16:36:58 +0000 (10:36 -0600)
interfaces/python/demo_tss.py

index de29d26d9025b160086727d9ed62ae7cdd0997d8..5268ab105af312e7bcdcf86c0cb1c2b3f7cda661 100755 (executable)
@@ -33,3 +33,15 @@ if __name__ == '__main__':
     steadstate = pw.rdo(stead_spec)   # overlap-add synthesis of steady states
     g(transients, read)               # write transients to output
     h(steadstate, read)               # write steady states to output
+
+  del f, g, h                         # finish writing the files now
+
+  from demo_spectrogram import get_spectrogram
+  from pylab import subplot, show
+  subplot(311)
+  get_spectrogram(sys.argv[1])
+  subplot(312)
+  get_spectrogram(sys.argv[2])
+  subplot(313)
+  get_spectrogram(sys.argv[3])
+  show()