সম্পাদনা
import matplotlib.pyplot as plt figure, axes = plt.subplots() def click(event): if event.inaxes: print( "x:", event.xdata, "y:", event.ydata ) connection = figure.canvas.mpl_connect( "button_press_event", click ) axes.plot( [1, 2, 3, 4], [2, 5, 3, 8] ) plt.show()
পূর্বরূপ