|||
根据不同画笔(pen)属性画不同的线型
效果图:
对应bat脚本:
gmt begin exam png,eps
gmt basemap -R0/10/0/10 -JX15c/5c -Bxa1 -Bya2 -BWS
gmt basemap -Bne
set pen=0.5p
set offset=2
(echo 0.5 %offset% & echo 7 %offset%) | gmt plot -W%pen%
echo 7.2 %offset% %pen% | gmt text -F+jML+f12p,8
set pen=green
set offset=3
(echo 0.5 %offset% & echo 7 %offset%) | gmt plot -W%pen%
echo 7.2 %offset% %pen% | gmt text -F+jML+f12p,8
set pen=thin,red,-
set offset=4
(echo 0.5 %offset% & echo 7 %offset%) | gmt plot -W%pen%
echo 7.2 %offset% %pen% | gmt text -F+jML+f12p,8
set pen=fat,.
set offset=5
(echo 0.5 %offset% & echo 7 %offset%) | gmt plot -W%pen%
echo 7.2 %offset% %pen% | gmt text -F+jML+f12p,8
set pen=0.1c,120-1-1
set offset=6
(echo 0.5 %offset% & echo 7 %offset%) | gmt plot -W%pen%
echo 7.2 %offset% %pen% | gmt text -F+jML+f12p,8
set pen=faint,0/0/255,..-
set offset=7
(echo 0.5 %offset% & echo 7 %offset%) | gmt plot -W%pen%
echo 7.2 %offset% %pen% | gmt text -F+jML+f12p,8
set pen=4p,red,9_4_2_4:2p
set offset=8
(echo 0.5 %offset% & echo 7 %offset%) | gmt plot -W%pen%
echo 7.2 %offset% %pen% | gmt text -F+jML+f12p,8
gmt end
对应bat脚本附件(需将后缀txt改为bat):
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-9-1 17:11
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社