Skip to content

Add link to GMT docs "Vector Attributes" in Gallery example "Vector heads and tails" ? - #2521

Merged
seisman merged 1 commit into
mainfrom
add-link-vectoratt
Apr 29, 2023
Merged

seisman merged 1 commit into
mainfrom
add-link-vectoratt

Conversation

@yvonnefroehlich

@yvonnefroehlich yvonnefroehlich commented Apr 25, 2023 •

Copy link
Copy Markdown
Member

Description of proposed changes

In the Gallery example Vector heads and tails we write:

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.

It seems like that the links "xyz#vector-attributes" for different modules link to the same GMT documentation part, at least the one for plot https://docs.generic-mapping-tools.org/dev/plot.html#vector-attributes looks similar to the one for velo https://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

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If wrapping a new module, open a 'Wrap new GMT module' issue and submit reasonably-sized PRs.
  • If adding new functionality, add an example to docstrings or tutorials.
  • Use underscores (not hyphens) in names of Python files and directories.

Slash Commands

You can write slash commands (/command) in the first line of a comment to perform
specific operations. Supported slash commands are:

  • /format: automatically format and lint the code
  • /test-gmt-dev: run full tests on the latest GMT development version

@yvonnefroehlich yvonnefroehlich added question Further information is requested documentation Improvements or additions to documentation skip-changelog Skip adding Pull Request to changelog labels Apr 25, 2023
@yvonnefroehlich yvonnefroehlich added this to the 0.10.0 milestone Apr 25, 2023
@yvonnefroehlich yvonnefroehlich self-assigned this Apr 25, 2023
@yvonnefroehlich 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
@seisman

seisman commented Apr 26, 2023

Copy link
Copy Markdown
Member

It seems like that the links "xyz#vector-attributes" for different modules link to the same GMT documentation part, at least the one for plot https://docs.generic-mapping-tools.org/dev/plot.html#vector-attributes looks similar to the one for velo https://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)?

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.

@yvonnefroehlich

Copy link
Copy Markdown
Member Author

It seems like that the links "xyz#vector-attributes" for different modules link to the same GMT documentation part, at least the one for plot https://docs.generic-mapping-tools.org/dev/plot.html#vector-attributes looks similar to the one for velo https://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)?

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 🙃.

@seisman

seisman commented Apr 28, 2023

Copy link
Copy Markdown
Member

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.

@yvonnefroehlich

Copy link
Copy Markdown
Member Author

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.

@seisman seisman added final review call This PR requires final review and approval from a second reviewer and removed question Further information is requested labels Apr 28, 2023
@seisman
seisman merged commit 7d360ef into main Apr 29, 2023
@seisman
seisman deleted the add-link-vectoratt branch April 29, 2023 13:21
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation skip-changelog Skip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants