Currently, GMT provides 9 different embellishments
- Map scale by
basemap -L or coast -L
- Directional rose by
basemap -Td or coast -Td
- Magnetic rose by
basemap -Tm or coast -Tm
- Colorbar by
colorbar
- Legend by
legend
- Raster images by
image
- GMT logo by
logo
- Map inset by
inset
- Vertical scale of wiggles in
wiggle
Refer to https://docs.generic-mapping-tools.org/6.5/reference/features.html#plot-embellishments for details.
These embellishments have different properties thus different option flags/modifiers, but they all share the same syntax for positioning, as shown below:
The common syntax is
[g|j|J|n|x]refpoint[+jjustify][+odx[/dy]
g|j|J|n|x specify the coordinate system
- refpoint specifies the reference point
+j specifies the anchor on the embellishment
+o set the extra offset of the anchor.
In PR #4014, I propose four parameters: position_type/position/anchor/anchor_offset for such syntax. Since the four parameters will be used in several wrappers, discussions are necessary.
Currently, GMT provides 9 different embellishments
basemap -Lorcoast -Lbasemap -Tdorcoast -Tdbasemap -Tmorcoast -TmcolorbarlegendimagelogoinsetwiggleRefer to https://docs.generic-mapping-tools.org/6.5/reference/features.html#plot-embellishments for details.
These embellishments have different properties thus different option flags/modifiers, but they all share the same syntax for positioning, as shown below:
-D[g|j|J|n|x]refpoint[+hheight|+wwidth][+jjustify][+odx[/dy]]Figure.logo: Add parameters position/width/height to specify logo position and dimensions #4014-D[g|j|J|n|x]refpoint+wwidth[/height][+jjustify][+odx[/dy]]Figure.inset: Add parameters position/width/height to specify inset position and dimensions #4047-D[g|j|J|n|x]refpoint+wwidth[/height][+jjustify][+lspacing][+odx[/dy]]Figure.legend: Add parameters position/width/height/line_spacing to specify legend position and properties #4046-D[g|j|J|n|x]refpoint+wlength[+jjustify][+al|r][+odx[/dy]][+l[label]]Figure.wiggle: Add parameters position/length/label/label_alignment for the scalebar position and properties #4049-D[g|j|J|n|x]refpoint+rdpi[c]+w[-]width[/height][+jjustify][+nnx[/ny] ][+odx[/dy]]Figure.image: Add parameters position/width/height/dpi/replicate to control image position and properties #4045-L[g|j|J|n|x]refpoint+wlength[e|f|k|M|n|u][+aalign][+c[[slon/]slat]][+f][+jjustify][+l[label]][+odx[/dy]][+u][+v]Add Figure.scalebar to plot a scale bar on maps #4015-Td[g|j|J|n|x]refpoint[+f|F[level]][+jjustify][+l[w,e,s,n]][+odx[/dy]][+wwidth]Add Figure.directional_rose to plot a directional rose on map #4025-Tm[g|j|J|n|x]refpoint[+ddec[/dlabel]]][+ipen][+jjustify][+l[w,e,s,n]][+ppen][+tints][+odx[/dy]][+wwidth]Add Figure.magnetic_rose to plot a magnetic rose on map #4051-D[g|j|J|n|x]refpoint[+wlength[/width]][+e[b|f][length]][+h|v][+jjustify][+m[a|c|l|u]][+n[txt]][+odx[/dy]][+r]Figure.colorbar: Add position/length/width and more parameters to specify colorbar position and properties #4048The common syntax is
g|j|J|n|xspecify the coordinate system+jspecifies the anchor on the embellishment+oset the extra offset of the anchor.In PR #4014, I propose four parameters:
position_type/position/anchor/anchor_offsetfor such syntax. Since the four parameters will be used in several wrappers, discussions are necessary.