I have a text file with latitude and longitude of some points. How can I plot them with including political boundaries?
Hi @Mahsa
you’d need two GMT calls to do this:
- generate a basemap with
gmt coast
with an appropriate choice for the-N
option - plot your points with
gmt plot
, using a symbol (-S
). If the data islatitude longitude
then you’d have to change the input column read order using the-i
option.
So a script could look like this:
gmt begin
gmt figure YourFigure pdf
gmt coast -R<your region/AOI> -J<your choice of projection> -N1 -B
gmt plot <YourPointsFile> -Sc0.4 -Gred
gmt end
Cheers,
Christian