Exemplo n.º 1
0
def test_plot_lines():
    nx = 100
    nsamps = 150
    x = numpy.linspace(0, 1, nx)
    m = numpy.random.normal(nsamps)
    c = numpy.random.normal(nsamps)
    fsamps = numpy.outer(x, m) + c
    fig, ax = plt.subplots()
    plot_lines(x, fsamps, ax)

    plot_lines(x, fsamps)
    plot_lines(x, fsamps, downsample=200)
Exemplo n.º 2
0
def test_plot_lines_no_ax():
    x, fsamps = gen_line_data()
    plt.subplots()
    plot_lines(x, fsamps)
Exemplo n.º 3
0
def test_plot_lines_downsample():
    x, fsamps = gen_line_data()
    plt.subplots()
    plot_lines(x, fsamps, downsample=200)
Exemplo n.º 4
0
def test_plot_lines():
    x, fsamps = gen_line_data()
    fig, ax = plt.subplots()
    plot_lines(x, fsamps, ax)