From: <jd...@us...> - 2007-10-28 15:18:08
|
Revision: 4039 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4039&view=rev Author: jdh2358 Date: 2007-10-28 08:18:02 -0700 (Sun, 28 Oct 2007) Log Message: ----------- added time series to specgram Modified Paths: -------------- trunk/matplotlib/examples/specgram_demo.py Modified: trunk/matplotlib/examples/specgram_demo.py =================================================================== --- trunk/matplotlib/examples/specgram_demo.py 2007-10-28 15:00:36 UTC (rev 4038) +++ trunk/matplotlib/examples/specgram_demo.py 2007-10-28 15:18:02 UTC (rev 4039) @@ -21,6 +21,9 @@ # the frequency vector, bins are the centers of the time bins in which # the power is computed, and im is the matplotlib.image.AxesImage # instance + +ax1 = subplot(211) +plot(t, x) +subplot(212, sharex=ax1) Pxx, freqs, bins, im = specgram(x, NFFT=NFFT, Fs=Fs, noverlap=900) -colorbar() show() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |