ASP.NET gridview row onclick

I’m attempting to have an onclick event added to a row once the data is bound to a gridview webcontrol. The code below is not adding any attributes (checked the viewsource once the page is created) and, of course, no functionality is added. Right now, I’ve just got the onclick printing to the page, but eventually it will link to another page. Any ideas on what’s wrong?

Store mouse click event coordinates with matplotlib

I am trying to implement a simple mouse click event in matplotlib. I wish to plot a figure then use the mouse to select the lower and upper limits for integration.
So far I am able to print the coordinates to screen but not store them for later use in the program. I would also like to exit the connection to the figure after the second mouse click.