missing os import
add kwargs to plot_signal