擅长:python、mysql、java
<p>我想出了如何绘制新的图形。它所需要的只是图形和轴的<code>on_pick</code>中的唯一名称,而不仅仅是<code>plt</code></p>
<pre><code>def on_pick(event):
my_fig, my_ax = plt.subplots() # New plot with unique name
my_ax.scatter([1, 2, 3, 4], [5, 6, 7, 8]) # Make the scatterplot
my_fig.show() # Show the plot
</code></pre>