相关疑难解决方法(0)

1726
推荐指数
22
解决办法
224万
查看次数

在ipython笔记本中绘制宽度设置

我有以下情节:

声音信号

如果它们具有相同的宽度,它看起来会更好.你知道在我使用ipython笔记本时怎么做%matplotlib inline吗?

更新:

为了生成这两个数字,我使用以下函数:

import numpy as np
import matplotlib.pyplot as plt

def show_plots2d(title, plots, points, xlabel = '', ylabel = ''):
    """
    Shows 2D plot.

    Arguments:
        title : string
            Title of the plot.
        plots : array_like of pairs like array_like and array_like
            List of pairs,
            where first element is x axis and the second is the y axis.
        points : array_like of pairs like integer and integer
            List of pairs,
            where first element is x coordinate …
Run Code Online (Sandbox Code Playgroud)

python matplotlib ipython ipython-notebook

74
推荐指数
3
解决办法
11万
查看次数