Le mardi 20 septembre 2011 à 12:59 +0200, Klonuo Umom a écrit : > If you don't mind, I have another question. > Those files are audio files. Can I limit dB range so that, let's say, > noise below 120dB isn't drawn? Is there some parameter so I can set > this range?
specgram internally computed the spectrogram and then displays it into a AxesImage instance (the im output argument). You can limit the range of values the colormap extends by passing extra arguments to specgram that are internally passed to the AxesImage.imshow method: See Argument "kwargs" in http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.specgram and http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.imshow >>> Pxx, freqs, bins, im = specgram(x, NFFT=1024, Fs=fs, window=win, noverlap=2, vmin=-120) -- Fabrice Silva ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users