-D 必选选项
设置位置参考点:
- -Dg 绘图坐标系
- -Dj 或 -DJ 标准参考点,根据两个字母标识确定,例如-DjBL,表示绘图区域的左下角(Bottom-Left)。M -- Middle R -- Right
- -Dn 归一化参考坐标。将整张图坐标看做0-1
- -Dx 图板坐标系,单位可为inch, cm, p等
设置绘制legend的图板大小
+wwidth/height
偏移legend的位置
+odx/dy
-F 设置legend图板的边框和填充
+gfill 填充
+p[pen] 边框线条属性
legend的编码
#
注释行
A cptname
设置CPT填充色
C textcolor
设置后面位置文本的颜色
H fontsize font header-text
水平居中书写header-text
H 16 1 hello world
M
在legrnd中绘制Map scale
N [n_columns]
或 N [width1 width2 ...]
设置列数,直到下一个N [n_columns]
出现来改变列数
S dx1 symble size fill pen [dx2 text]
绘制symbol
dx1 -- 与左边框的距离
symble -- 图形种类,c-circle, s-square, a-star等,参考psxy -S选项,- 表示线段
size -- symble的大小
fill -- symble的填充色,- 表示无填充
pen -- symble的边属性
dx2 -- 后面text与symble的距离
text -- 需要输出的文本
G gap
设置与上一行的垂直距离,单位为i(inch), c(cm), p(point)
或l
V [offset] pen
在当前行绘制列分隔线(根据),绘制的条数根据上一个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
可绘制如下

gmt pslegend -DJBC+o0/0.4i+w7i/1.7i -R -J -O -F+p+glightyellow neis.legend >> $ps
网友评论