Hi! I’m adding some legends for my map. These include lines(faults, trenches) and volcanoes. The plotted lines came from some shp file then I converted to .gmt file.
fig.plot(
data=“AF.gmt”,
pen=“red”,
label = ‘Fault’
)fig.plot(
data=“trench.gmt”,
Sf = ‘+.3i/.1i+l+t’,
pen=".8p,blue",
label = ‘Trench’
)fig.plot(
x =volLon,
y =volLat,
Sk = ‘volcano/0.2i’,
color = ‘red’,
label = ‘Volcano’
)fig.legend(position=“JTR+jTR+o0.2c”, box=’+gwhite+p1p’)
When I tried to add these to a legend box, it threw a warning and an error.
plot [WARNING]: Cannot use auto-legend -l for selected feature. Option -l ignored.
plot [ERROR]: Could not find either custom symbol or EPS macro