语谱图学习——相关库的介绍(1)matplotlib.pyplot.specgram


前言

本文为matplotlib.pyplot.specgram官网介绍及部分翻译,仅为学习方便保存整理使用。

matplotlib.pyplot.specgram

matplotlib.pyplot.specgram(x, NFFT=None, Fs=None, Fc=None, detrend=None, window=None, noverlap=None, cmap=None, xextent=None, pad_to=None, sides=None, scale_by_freq=None, mode=None, scale=None, vmin=None, vmax=None, *, data=None, **kwargs)

Plot a spectrogram.

Compute and plot a spectrogram of data in x. Data are split into NFFT length segments and the spectrum of each section is computed. The windowing function window is applied to each segment, and the amount of overlap of each segment is specified with noverlap. The spectrogram is plotted as a colormap (using imshow).
计算并绘制x中数据的频谱图。将数据分为 NFFT个长度段,并计算每个部分的频谱。窗口功能窗口应用于每个片段,并且每个片段的重叠量用noverlap指定。频谱图被绘制为颜色图(使用imshow)。

Parameters

x:1-D array or sequence
Array or sequence containing the data.
一维数组或序列
包含数据的数组或序列。

Fs:float, default: 2
The sampling frequency (samples per time unit). It is used to calculate the Fourier frequencies, freqs, in cycles per time unit.
浮点数,默认值:2
采样频率(每个时间单位采样)。它用于以每个时间单位的周期计算傅立叶频率freqs。

window:callable or ndarray, default: window_hanning
A function or a vector of length NFFT. To create window vectors see window_hanning, window_none, numpy.blackman, numpy.hamming, numpy.bartlett, scipy

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值