-
Notifications
You must be signed in to change notification settings - Fork 234
Open
Labels
featureBrand new featureBrand new feature
Milestone
Description
Currently, GMT provides 9 different embellishments
- Map scale by
basemap -Lorcoast -L - Directional rose by
basemap -Tdorcoast -Td - Magnetic rose by
basemap -Tmorcoast -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:
- Map scale:
-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]WIP: Add Figure.scalebar to plot a scale bar on maps #4015 - Directional rose:
-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 - Magnetic rose:
-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 - Colorbar:
-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]WIP: Figure.colorbar: Refactor using the new alias system #4048 - Legend:
-D[g|j|J|n|x]refpoint+wwidth[/height][+jjustify][+lspacing][+odx[/dy]]WIP: Figure.legend: Refactor using the new alias system #4046 - Raster image:
-D[g|j|J|n|x]refpoint+rdpi[c]+w[-]width[/height][+jjustify][+nnx[/ny] ][+odx[/dy]]WIP: Figure.image: Refactor using the new alias system #4045 - GMT logo:
-D[g|j|J|n|x]refpoint[+hheight|+wwidth][+jjustify][+odx[/dy]]Figure.logo: Add parameters 'position/position_type/anchor/anchor_offset/width/height' to specify the location and size #4014 - Map inset:
-D[g|j|J|n|x]refpoint+wwidth[/height][+jjustify][+odx[/dy]]WIP: Figure.inset: Refactor using the new alias system #4047 - Vertical scale:
-D[g|j|J|n|x]refpoint+wlength[+jjustify][+al|r][+odx[/dy]][+l[label]]Figure.wiggle: Refactor using the new alias system #4049
The common syntax is
[g|j|J|n|x]refpoint[+jjustify][+odx[/dy]
g|j|J|n|xspecify the coordinate system- refpoint specifies the reference point
+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_offset for such syntax. Since the four parameters will be used in several wrappers, discussions are necessary.
yvonnefroehlich
Metadata
Metadata
Assignees
Labels
featureBrand new featureBrand new feature