Matplotlib - Interactive Features
What will be printed when the following code runs and the user clicks on the red circle?
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
circle = plt.Circle((0.5, 0.5), 0.1, color='red', picker=True)
ax.add_patch(circle)
def on_pick(event):
print('Picked:', event.artist)
fig.canvas.mpl_connect('pick_event', on_pick)
plt.show()