fig, ax = plt.subplots() ax.plot(np.random.rand(10)) def onclick(event): ... event.ydata)) cid = fig.canvas.mpl_connect('button_press_event', onclick)
確定! 回上一頁