ax.plot(data_bucket[k], gid=k, picker=5, ls='', marker='o')
fig.canvas.mpl_connect('pick_event', picker)
How to generate multiple plots by clicking a single plot for more infomation using clickable python events