small changes to plot_signal