Plot earthquake depths as a function of distance

Hi,

I am a beginner in PyGMT, can you help with this question: How to plot earthquake depths as a function of distance? Do you have any code that help me to have idea in this kind of plots?

Thanks,