How to remove data points from a map

Hi All,

I am plotting earthquake data point on my map. There are certain earthquakes that happened in the sea. How can I remove them from the map in PYGMT? how it is about when we have a grid that overlay the ocean and I wanted to remove those points from my plot.


gmtselect can clip by ocean or by land points.

thank you so much. It worked.