Python, Data Science, Engineering, Science, Electronics.
plt.plot(npTime,npSin2,linewidth=1,label=str(signFreq2)+"Hz") plt.margins(x=0, y=1) plt.legend() plt.show() ## Combined signal, clean plt.plot(npTime,cleanSignal,linewidth=1,label="Signal "+str(signFreq1)+"Hz and "+str(signFreq2) + "Hz combined") plt.margins(x=0, y=1) plt.legend() plt.show() Source