How to use the ruptures.show.display function in ruptures

To help you get started, we’ve selected a few ruptures examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github deepcharles / ruptures / tests / test_display.py View on Github external
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')
github deepcharles / ruptures / tests / test_display.py View on Github external
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')
github deepcharles / ruptures / tests / test_display.py View on Github external
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')
github deepcharles / ruptures / tests / test_display.py View on Github external
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')
github deepcharles / ruptures / tests / test_display.py View on Github external
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')
github deepcharles / ruptures / tests / test_display.py View on Github external
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')
github deepcharles / ruptures / tests / test_display.py View on Github external
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')
github deepcharles / ruptures / tests / test_display.py View on Github external
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')
github deepcharles / ruptures / tests / test_display.py View on Github external
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')
github deepcharles / ruptures / tests / test_display.py View on Github external
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')