plot.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:sound_field_analysis-py 作者: QULab 项目源码 文件源码
def plot2D(data, title=None, viz_type=None, fs=None, line_names=None):
    """Visualize 2D data using plotly.

    Parameters
    ----------
    data : array_like
       Data to be plotted, separated along the first dimension (rows).
    title : string
       Add title to be displayed on plot
    type : string{None, 'time', 'linFFT', 'logFFT'}
       Type of data to be displayed. [Default: None]
    fs : int
       Sampling rate in Hz. [Default: 44100]
    """

    layout = layout_2D(viz_type, title)
    traces = prepare_2D_traces(data, viz_type, fs, line_names=line_names)

    showTrace(traces, layout=layout, title=title)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号