-
Notifications
You must be signed in to change notification settings - Fork 234
Open
Labels
feature requestNew feature wantedNew feature wanted
Milestone
Description
This issue serves as the central place for discussing and tracking the implementation of the Figure.scalebar method in PyGMT. The issue will be closed when the initial implementation is complete. Progress is tracked at PyGMT: Wrapping GMT modules.
Figure.scalebar is a thin wrapper for the -L option of the basemap module.
Documentation
- GMT: https://docs.generic-mapping-tools.org/dev/basemap.html
- GMT.jl: https://www.generic-mapping-tools.org/GMTjl_doc/documentation/modules/basemap
- PyGMT: https://www.pygmt.org/dev/api/generated/pygmt.Figure.scalebar.html
GMT Option Flags and Modifiers
☑️: Implemented; ⬜: To be implemented/discussed; Strikethrough: Won't implement.
Below are the option flags and modifiers of the basemap module.
-
-R:region -
-J:projection -
-Jz/-JZ:zscale/zsize -
: Dumping polygons of bounding box. Make no sense here.-A -
-B:frame -
-F:boxAdd Figure.scalebar to plot a scale bar on maps #4015 -
-L:-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]-
g|j|J|n|x]refpoint[+jjustify][+odx[/dy]]:positionAdd Figure.scalebar to plot a scale bar on maps #4015 -
+wlength:lengthAdd Figure.scalebar to plot a scale bar on maps #4015 -
+a:label_alignmentAdd Figure.scalebar to plot a scale bar on maps #4015 -
+c:scale_locationAdd Figure.scalebar to plot a scale bar on maps #4015 -
+l:labelAdd Figure.scalebar to plot a scale bar on maps #4015 -
+u:unitAdd Figure.scalebar to plot a scale bar on maps #4015 -
+v:verticalAdd Figure.scalebar to plot a scale bar on maps #4015 -
MAP_SCALE_HEIGHT:heightAdd Figure.scalebar to plot a scale bar on maps #4015
-
-
: Add a directional rose-Td -
: Add a magnatic rose-Tm -
: Use-UFigure.timestampinstead. -
-V:verboseAdd Figure.scalebar to plot a scale bar on maps #4015 -
: Use-X/-YFigure.shift_origininstead. -
-c:panelAdd Figure.scalebar to plot a scale bar on maps #4015 -
: Makes no sense in-fFigure.scalebar -
-p:perspectiveAdd Figure.scalebar to plot a scale bar on maps #4015 -
-t:transparencyAdd Figure.scalebar to plot a scale bar on maps #4015 -
: Use--PAR=valuepygmt.configinstead.
Linked Pull Requests
- Initial feature implementation Add Figure.scalebar to plot a scale bar on maps #4015 @seisman
- Add a tutorial or gallery example
Related Issues and Discussions
Add links to related wrapper discussions, API design threads, or upstream GMT changes here.
Metadata
Metadata
Assignees
Labels
feature requestNew feature wantedNew feature wanted
Type
Projects
Status
0) Wishlist