Re: [Matplotlib-users] Colorbar not working with specgram

2009-07-22 Thread Eric Firing
davide lasagna wrote: > Thanks Eric for pointing out this. However i've found that psd and > specgram plot 10*log10*(Pxx/max(Pxx)), so i'll have a range from 0 db > down. Aha, I wasn't looking closely enough! > Anyway, what do you mean by "should not be axes method"? That was a side remark about

Re: [Matplotlib-users] Colorbar not working with specgram

2009-07-22 Thread davide lasagna
Thanks Eric for pointing out this. However i've found that psd and specgram plot 10*log10*(Pxx/max(Pxx)), so i'll have a range from 0 db down. Anyway, what do you mean by "should not be axes method"? Do you mean using the array output of specgram and psd and plotting that result by myself? Cheers

Re: [Matplotlib-users] Colorbar not working with specgram

2009-07-21 Thread Eric Firing
davide lasagna wrote: > Hello everybody, > this is my first post in this list. > > I'm plotting a spectrogram with > > Pxx, freqs, bins, im = specgram(y, nfft=256, f_sampling=12000) > > and i want to add a colorbar with > > colorbar() > > > The problem is that the color scale seems to be wro

[Matplotlib-users] Colorbar not working with specgram

2009-07-20 Thread davide lasagna
Hello everybody, this is my first post in this list. I'm plotting a spectrogram with Pxx, freqs, bins, im = specgram(y, nfft=256, f_sampling=12000) and i want to add a colorbar with colorbar() The problem is that the color scale seems to be wrong with respect to the data in Pxx, i.e. Pxx is