我得到
提供了答案,看看這個問題
uj5u.com熱心網友回復:
我想出了如何繪制新圖形的方法。它所需要的on_pick只是plt圖形和軸的唯一名稱,而不僅僅是。
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
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/317772.html
標籤:Python matplotlib 阴谋 图形 数据科学
