Focal mecanism plot

I want to extract the seismic event from a map whose near to a red dash. But i don’t know how to set the function of
this is my code

Why is it always Windows users that decide to paste images of source code into the forum post despite the instructions at the top of the page on not to do that. Do you have a magical way of copying/pasting source code from an image into a python script? No? Well we dont either. Please only plot images of plot results, not source code. It is useless.

I’m sorry for not reading the rules carefully. I will resubmit the post.