Matplotlib - Interactive Features
What will be printed when the following code runs and you click inside the plot area?
import matplotlib.pyplot as plt
from matplotlib.widgets import Cursor
fig, ax = plt.subplots()
cursor = Cursor(ax, useblit=True, color='blue', linewidth=1)
def on_click(event):
print(f'Clicked at x={event.xdata}, y={event.ydata}')
fig.canvas.mpl_connect('button_press_event', on_click)
plt.show()