擅长:python、mysql、java
<p>可以通过指定新的地物索引来创建新的地物窗口,例如<code>plt.figure(10)</code>。在您的情况下,您可以使用:</p>
<pre><code>for i in range (nsets):
plt.figure(i) # choose figure i to be the current figure (create it if not already existing)
plt.plot(t, signal())
plt.show()
plt.hold(True)
</code></pre>