for ax, color in zip(axes.flat, ['r', 'g', 'b', 'c']):
    ax.plot(list(range(10)), color=color)
fig.canvas.mpl_connect('button_press_event', on_click)
Matplotlib: Grab Single Subplot from Multiple Subplots