Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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')
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')
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')
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')
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')
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')
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')
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')
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')
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')