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
{{ message }}
Repository navigation
Add link to GMT docs "Vector Attributes" in Gallery example "Vector heads and tails" ? - #2521
For further modifiers see the Vector Attributes subsection of the corresponding method.
In the PyGMT documentation, we do not have a "Vector Attributes" subsection in any of the docstrings for the different plotting methods. For pygmt.Figure.plot we simply say:
style (str) – Plot symbols (including vectors, pie slices, fronts, decorated or quoted lines).
Probably this statement is referring to the upstream GMT documentation? I am a little bit concerned, whether this is straight forward to find.
yvonnefroehlich
changed the title
Add link to GMT documentation for "Vector Attributes" in Gallery example "Vector heads and tails" ?
Add link to GMT docs "Vector Attributes" in Gallery example "Vector heads and tails" ?
Apr 25, 2023
Yes, they're also the same, so linking to a single module sounds good to me. Or we can have another advanced tutorial for this.
Maybe we add the link for now and then work on such an advanced tutorial in the next time. I can open an seperate issue. But at the moment I am not sure, whether I have directly time to work on it 🙃.
hen work on such an advanced tutorial in the next time. I can open an seperate issue. But at the moment I am not sure, whether I have directly time to work on it 🙃.
Yes, please open an issue so that we won't forget it.
hen work on such an advanced tutorial in the next time. I can open an seperate issue. But at the moment I am not sure, whether I have directly time to work on it upside_down_face.
Yes, please open an issue so that we won't forget it.
Opened issue #2527 regarding adding an advanced tutorial for explaining Vector Attributes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of proposed changes
In the Gallery example Vector heads and tails we write:
In the PyGMT documentation, we do not have a "Vector Attributes" subsection in any of the docstrings for the different plotting methods. For
pygmt.Figure.plotwe simply say:Probably this statement is referring to the upstream GMT documentation? I am a little bit concerned, whether this is straight forward to find.
It seems like that the links
"xyz#vector-attributes"for different modules link to the same GMT documentation part, at least the one forplothttps://docs.generic-mapping-tools.org/dev/plot.html#vector-attributes looks similar to the one forvelohttps://docs.generic-mapping-tools.org/dev/supplements/geodesy/velo.html#vector-attributes. So, I am wondering whether it is more helpful to state the link to the upstream GMT documentation of one module, e.g.,plot, instead of writing "Vector Attributes subsection of the corresponding method" in the Gallery example (see commit f7d7cda)?Preview: https://pygmt-dev--2521.org.readthedocs.build/en/2521/gallery/lines/vector_heads_tails.html
Reminders
make formatandmake checkto make sure the code follows the style guide.doc/api/index.rst.Slash Commands
You can write slash commands (
/command) in the first line of a comment to performspecific operations. Supported slash commands are:
/format: automatically format and lint the code/test-gmt-dev: run full tests on the latest GMT development version