-D 必選選項(xiàng)
設(shè)置位置參考點(diǎn):
- -Dg 繪圖坐標(biāo)系
- -Dj 或 -DJ 標(biāo)準(zhǔn)參考點(diǎn)归斤,根據(jù)兩個(gè)字母標(biāo)識(shí)確定舌稀,例如-DjBL,表示繪圖區(qū)域的左下角(Bottom-Left)。M -- Middle R -- Right
- -Dn 歸一化參考坐標(biāo)菊值。將整張圖坐標(biāo)看做0-1
- -Dx 圖板坐標(biāo)系,單位可為inch, cm, p等
設(shè)置繪制legend的圖板大小
+wwidth/height
偏移legend的位置
+odx/dy
-F 設(shè)置legend圖板的邊框和填充
+gfill 填充
+p[pen] 邊框線條屬性
legend的編碼
#
注釋行
A cptname
設(shè)置CPT填充色
C textcolor
設(shè)置后面位置文本的顏色
H fontsize font header-text
水平居中書寫header-text
H 16 1 hello world
M
在legrnd中繪制Map scale
N [n_columns]
或 N [width1 width2 ...]
設(shè)置列數(shù)育灸,直到下一個(gè)N [n_columns]
出現(xiàn)來改變列數(shù)
S dx1 symble size fill pen [dx2 text]
繪制symbol
dx1 -- 與左邊框的距離
symble -- 圖形種類腻窒,c-circle, s-square, a-star等,參考psxy -S選項(xiàng)磅崭,- 表示線段
size -- symble的大小
fill -- symble的填充色儿子,- 表示無填充
pen -- symble的邊屬性
dx2 -- 后面text與symble的距離
text -- 需要輸出的文本
G gap
設(shè)置與上一行的垂直距離,單位為i(inch), c(cm), p(point)
或l
V [offset] pen
在當(dāng)前行繪制列分隔線(根據(jù))砸喻,繪制的條數(shù)根據(jù)上一個(gè)N
所確定
T paragraph-text
段落文本(長文本)
如下legend編碼
H 16 1 $n events during $first to $last
D 0 1p
N 3
V 0 1p
S 0.1i c 0.1i red 0.25p 0.2i Shallow depth (0-100 km)
S 0.1i c 0.1i green 0.25p 0.2i Intermediate depth (100-300 km)
S 0.1i c 0.1i blue 0.25p 0.2i Very deep (> 300 km)
D 0 1p
V 0 1p
N 7
V 0 1p
S 0.1i c 0.06i - 0.25p 0.3i M 3
S 0.1i c 0.08i - 0.25p 0.3i M 4
S 0.1i c 0.10i - 0.25p 0.3i M 5
S 0.1i c 0.12i - 0.25p 0.3i M 6
S 0.1i c 0.14i - 0.25p 0.3i M 7
S 0.1i c 0.16i - 0.25p 0.3i M 8
S 0.1i c 0.18i - 0.25p 0.3i M 9
D 0 1p
# 另一段落
G 0.25l
P
T USGS/NEIS most recent earthquakes for the last seven days. The data were
T obtained automatically from the USGS Earthquake Hazards Program page at
T @_http://neic/usgs.gov @_. Interested users may also receive email alerts
T from the USGS.
T This script can be called daily to update the latest information.
G 0.4i
# Add USGS logo
I USGS.ras 1i RT
G -0.3i
L 12 6 LB $me
END
可繪制如下
image.png
gmt pslegend -DJBC+o0/0.4i+w7i/1.7i -R -J -O -F+p+glightyellow neis.legend >> $ps