You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue serves as the central place for discussing and tracking the implementation of the hlines and vlines methods in PyGMT. The issue will be closed when the initial implementation is complete. Progress is tracked at PyGMT: Wrapping GMT modules.
☑️: Implemented; ⬜: To be implemented/discussed; Strikethrough: Won't implement.
Figure.hlines and Figure.vlines are high-level PyGMT wrappers around Figure.plot (which internally uses GMT's plot module). They expose the following subset of Figure.plot parameters:
Figure.hlines plots horizontal lines at specified Y-coordinates; Figure.vlines plots vertical lines at specified X-coordinates. Both methods internally call Figure.plot with straight_line="x" or straight_line="y" respectively, and resample to at least 4 points to support geographic/polar projections.
The term "horizontal"/"vertical" differs by coordinate system:
Cartesian: straight lines
Polar: arcs along constant radius / straight lines along constant azimuth
Geographic: arcs along parallels (constant latitude) / meridians (constant longitude)
This issue serves as the central place for discussing and tracking the implementation of the
hlinesandvlinesmethods in PyGMT. The issue will be closed when the initial implementation is complete. Progress is tracked at PyGMT: Wrapping GMT modules.Documentation
hlines: https://www.pygmt.org/dev/api/generated/pygmt.Figure.hlines.htmlvlines: https://www.pygmt.org/dev/api/generated/pygmt.Figure.vlines.htmlParameters
☑️: Implemented; ⬜: To be implemented/discussed;
Strikethrough: Won't implement.Figure.hlinesandFigure.vlinesare high-level PyGMT wrappers aroundFigure.plot(which internally uses GMT'splotmodule). They expose the following subset ofFigure.plotparameters:-B:frame-J:projection-N:no_clip-R:region: Use-UFigure.timestampinstead.-V:verbose-W:pen: Use-X/-YFigure.shift_origininstead.-c:panelFigure.hlines/Figure.vlines: Add the parameter 'panel' #4892-l:label-p:perspective-t:transparency: Use--PAR=valuepygmt.configinstead.Notes
Figure.hlinesplots horizontal lines at specified Y-coordinates;Figure.vlinesplots vertical lines at specified X-coordinates. Both methods internally callFigure.plotwithstraight_line="x"orstraight_line="y"respectively, and resample to at least 4 points to support geographic/polar projections.The term "horizontal"/"vertical" differs by coordinate system:
Linked Pull Requests
Related Issues and Discussions
hlines/vlinesconvenience methods