I changed my mind. The second patch was so easy that here is the complete patch that includes allowing psd, csd, cohere_pairs, cohere, and specgram to pass in a vector of length NFFT for "window".
I'll go attach this patch to the SF site for the ticket I created yesterday.
Thanks
Greg
On 10/7/06, Greg Willden <
[EMAIL PROTECTED]> wrote:
Hi,
I'll do these patches a little at a time.
Here is a patch to show a complex spectrogram with the negative frequencies flipped down. I've also attached a modified version of the spectrogram_demo.py that creates the two signals as complex exponentials so they are only in one half of the spectrum (long signal positive, short signal negative).
Basically, if the input signal is complex then the whole spectrogram is shown. If the input is real then just the positive frequencies are shown.
Next I'll work on the following as discussed.
Thanks
GregOn 10/6/06, John Hunter < [EMAIL PROTECTED]> wrote:>>>>> "Greg" == Greg Willden <[EMAIL PROTECTED]> writes:
Greg> c) Modify specgram so that if it
Greg> receives an array as the window parameter it checks its
Greg> length and then applies it as a window. If the window
Greg> parameter is not an array then it treats it as a function
Greg> (current behaviour)
This is fine -- I suggest using the matplotlib.cookbook.iterable
function or the python builtin callable function to do the check.
Whatever changes you make for specgram should also be ported into psd,
csd and cohere.
--
Linux. Because rebooting is for adding hardware.
--
Linux. Because rebooting is for adding hardware.
cmplx-specgram-window-vector-patch
Description: Binary data
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel