|||
将-F+ffont中的font修改为不同的值,可获得不同效果的文字,如下图:
bat脚本:
gmt begin text_examples eps,png
gmt basemap -JX15c/6c -R0/10/0/12.5 -Bxa1 -Bya2 -BWS
gmt basemap -Bne
set font=30p
set offset=1
(echo 1 %offset% LM %font% TEXT & echo 3.2 %offset% LM 15p,8,black %font%) ^
| gmt text -F+j+f
set font=30p,8
set offset=3
(echo 1 %offset% LM %font% TEXT & echo 3.2 %offset% LM 15p,8,black %font%) ^
| gmt text -F+j+f
set font=30p,8,red
set offset=5
(echo 1 %offset% LM %font% TEXT & echo 3.2 %offset% LM 15p,8,black %font%) ^
| gmt text -F+j+f
set font=30p,Courier-Bold,blue
set offset=7
(echo 1 %offset% LM %font% TEXT & echo 3.2 %offset% LM 15p,8,black %font%) ^
| gmt text -F+j+f
set font=30p,5,blue=1p,black,solid
set offset=9
(echo 1 %offset% LM %font% TEXT & echo 3.2 %offset% LM 15p,8,black %font%) ^
| gmt text -F+j+f
set font=30p,5,-=1p,black,solid
set offset=11
(echo 1 %offset% LM %font% TEXT & echo 3.2 %offset% LM 15p,8,black %font%) ^
| gmt text -F+j+f
gmt end
bat脚本附件(需将后缀名txt改为bat):
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-11-23 06:34
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社