How to plot a text file of points

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:

  1. generate a basemap with gmt coast with an appropriate choice for the -N option
  2. plot your points with gmt plot, using a symbol (-S). If the data is latitude 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