且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何绘制从Python返回多个值的函数的输出?

更新时间:2023-12-04 11:01:34

只需对频谱的返回值使用索引:

Just use indexing on the return value from spectrum:

plot(spectrum(t)[2], (t, 1, 100))