示例#1
0
def test_display(signal_bkps):
    try:
        signal, bkps = signal_bkps
        fig, axarr = display(signal, bkps)
        fig, axarr = display(signal, bkps, bkps)
        figsize = (20, 10)  # figure size
        alpha = 0.2
        color = "k"
        linewidth = 3
        linestyle = "--"
        fig, axarr = display(signal,
                             bkps,
                             figsize=figsize,
                             alpha=alpha,
                             color=color,
                             linewidth=linewidth,
                             linestyle=linestyle)
        fig, axarr = display(signal[:, 0],
                             bkps,
                             figsize=figsize,
                             alpha=alpha,
                             color=color,
                             linewidth=linewidth,
                             linestyle=linestyle)
    except MatplotlibMissingError:
        pytest.skip('matplotlib is not installed')
示例#2
0
def test_display_with_options(signal_bkps):
    try:
        signal, bkps = signal_bkps
        fig, axarr = display(signal, bkps)
        fig, axarr = display(signal, bkps, bkps)
        figsize = (20, 10)  # figure size
        alpha = 0.5
        color = "b"
        linewidth = 5
        linestyle = "-*"
        fig, axarr = display(
            signal,
            bkps,
            figsize=figsize,
            alpha=alpha,
            color=color,
            linewidth=linewidth,
            linestyle=linestyle,
        )
        fig, axarr = display(
            signal[:, 0],
            bkps,
            figsize=figsize,
            alpha=alpha,
            color=color,
            linewidth=linewidth,
            linestyle=linestyle,
        )
    except MatplotlibMissingError:
        pytest.skip("matplotlib is not installed")
示例#3
0
def test_display_with_new_options(signal_bkps):
    try:
        signal, bkps = signal_bkps
        fig, axarr = display(signal, bkps)
        fig, axarr = display(signal, bkps, bkps)

        fig, axarr = display(signal, bkps, facecolor="k", edgecolor="b")
        fig, axarr = display(signal[:, 0], bkps, facecolor="k", edgecolor="b")
    except MatplotlibMissingError:
        pytest.skip("matplotlib is not installed")
示例#4
0
def test_display_without_options(signal_bkps):
    try:
        signal, bkps = signal_bkps
        fig, axarr = display(signal, bkps)
        fig, axarr = display(signal, bkps, bkps)
        figsize = (20, 10)  # figure size
        fig, axarr = display(signal, bkps)
        fig, axarr = display(signal[:, 0], bkps)
    except MatplotlibMissingError:
        pytest.skip("matplotlib is not installed")
示例#5
0
def test_display_without_options(signal_bkps):
    try:
        signal, bkps = signal_bkps
        fig, axarr = display(signal, bkps)
        fig, axarr = display(signal, bkps, bkps)
        figsize = (20, 10)  # figure size
        alpha = 0.2
        color = "k"
        linewidth = 3
        linestyle = "--"
        fig, axarr = display(signal, bkps)
        fig, axarr = display(signal[:, 0], bkps)
    except MatplotlibMissingError:
        pytest.skip("matplotlib is not installed")
示例#6
0
def test_display(signal_bkps):
    signal, bkps = signal_bkps
    fig, axarr = display(signal, bkps)
    fig, axarr = display(signal, bkps, bkps)
    figsize = (20, 10)  # figure size
    alpha = 0.2
    color = "k"
    linewidth = 3
    linestyle = "--"
    fig, axarr = display(signal,
                         bkps,
                         figsize=figsize,
                         alpha=alpha,
                         color=color,
                         linewidth=linewidth,
                         linestyle=linestyle)
    fig, axarr = display(signal[:, 0],
                         bkps,
                         figsize=figsize,
                         alpha=alpha,
                         color=color,
                         linewidth=linewidth,
                         linestyle=linestyle)