基于GMT6软件,在VS Code上简单绘制单独省份行政区划图,以广西为例。
数据源:中国地理数据空间集,中国国界省界数据。
set GMT_SESSION_NAME=97401
gmt begin GDO pnggmt set MAP_GRID_PEN_PRIMARY 0.25p,gray,2_2gmt coast -R103/114/20/27 -JM12c -Bafg2 -BWSne+t"GUANG Xi" -Glightyellow -Slightbluegmt basemap -Lg112.7/20.4+c20.5+w200k+f+u --FONT_ANNOT_PRIMARY=4pgmt plot GXi.txt -Gredgmt plot CN-border-La.gmt -W0.5pgmt plot CN-border-L1.gmt -W0.6pecho 108.27 22.78 >points.datgmt plot -Sc0.25c -Gyellow points.dat -l"provincial capital"echo 103.7 26 -90 | gmt plot -Skcompass/1 -W0.6pecho 103.7 26.6 N > point.datgmt text -F+f9p,1,black point.dat
gmt end show