Skip to content

Figure.grdcontour: improve the documentation of the pen parameter #2704

Closed

Description

@HouseJaay

Please describe what could be improved about this page or the typo/mistake that you found:
"pen (str) – Set pen attributes for lines or the outline of symbols."
should be:
"pen (str, list) – Set pen attributes for lines or the outline of symbols."
Because we can set pen attributes for contour lines with and without annotations separately.
Example: pen=['a0.75p,white', 'c0.25p,white'].

Activity

  1. welcome commented on Sep 30, 2023

    @welcome

    👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. You might also want to take a look at our contributing guidelines and code of conduct.

  2. yvonnefroehlich commented on Sep 30, 2023

    @yvonnefroehlich
    Member

    Thanks @HouseJaay for pointing out this limitation of the docstrings 🙂!

    Actually this is not only relevant for Figure.grdcontour, but also for Figure.contour.

    For these two methods, I feel we should not only update the allowed input types for the pen parameter but also improve the docstring following the upstream GMT documentation instead of using the general formulation defined in the decorators.py file:

    If you'd like to work on these updates, feel free to submit a pull request. For details on how contributing to PyGMT works, you may want to take a look at our Contributors Guide. Please ask any questions you have.

  3. added this to the 0.11.0 milestone on Sep 30, 2023
  4. added
    documentation
    on Sep 30, 2023
  5. changed the title [-]Suggested improvement for api/generated/pygmt.Figure.grdcontour[/-] [+]Figure.grdcontour: Suggested improvement for api/generated/pygmt.Figure.grdcontour[/+] on Oct 9, 2023
  6. modified the milestones: 0.11.0, 0.12.0 on Dec 19, 2023
  7. removed this from the 0.12.0 milestone on Feb 26, 2024
  8. changed the title [-]Figure.grdcontour: Suggested improvement for api/generated/pygmt.Figure.grdcontour[/-] [+]Figure.grdcontour: improve the documentation of the pen parameter[/+] on Mar 4, 2024
  9. yvonnefroehlich commented on Apr 28, 2024

    @yvonnefroehlich
    Member

    What is the status on this issue? Would it be fine if I submit a PR for improving the docstring for the pen parameter for both Figure.grdcontour and Figure.contour?

  10. seisman commented on Apr 29, 2024

    @seisman
    Member

    Yes, please improve the docstrings following the GMT docs.

  11. yvonnefroehlich commented on Apr 29, 2024

    @yvonnefroehlich
    Member

    Yes, please improve the docstrings following the GMT docs.

    Submitted PR #3210 for this.

  12. added this to the 0.12.0 milestone on Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions