How to draw a precipitation map using only the precipitation from those stations?

Hello brothers:
Sorry i’m a newbie for python and pygmt.
Now I am drawing a map showing precipitation in Hong Kong area. I only have data from some weather stations in Hong Kong including longitude 、 latitude and precipitation. By studying the manual, I’ll just color-code the precipitation for that stations,like this:


But I have two problems:①How to display only the range of Hong Kong, excluding other regions except Hong Kong?
②How to plot the precipitation within Hong Kong using only the precipitation from those stations?like this:

What should I do?Thank you all!!


How do I fill contour with color?
Is there a function like contourf() of matplotlib.pyplot?

Thanks @tReE for trying out PyGMT!

Maybe this tutorial is helpful for you: Creating a map with contour lines — PyGMT, especially the last section ‘adding a colormap’.

GMT does not have a contourf but grdview (and contour) has options that mimic that functionality.

Thank you very much, I will continue to learn!

Thank you very much, I will continue to learn more