Skip to content

DOC/Figure.histogram: Improve docstrings for parameters "fill" and "camp" - #4990

Merged
seisman merged 16 commits into
mainfrom
improve-docs-histo
Nov 24, 2026
Merged

seisman merged 16 commits into
mainfrom
improve-docs-histo

Conversation

@yvonnefroehlich

@yvonnefroehlich yvonnefroehlich commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Description of proposed changes

This PR aims to improve the docstrings for the fill and cmap parameter of Figure.histogram.

Partly related to #4988 (comment) with issue report GMT at GenericMappingTools/gmt#9314

Patches #4886

Preview: https://pygmt-dev--4990.org.readthedocs.build/en/4990/api/generated/pygmt.Figure.histogram.html

Guidelines

Slash Commands

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

  • /format: automatically format and lint the code

@yvonnefroehlich yvonnefroehlich added this to the 0.20.0 milestone Nov 21, 2026
@yvonnefroehlich yvonnefroehlich self-assigned this Nov 21, 2026
@yvonnefroehlich yvonnefroehlich added documentation Improvements or additions to documentation skip-changelog Skip adding Pull Request to changelog labels Nov 21, 2026
@yvonnefroehlich yvonnefroehlich mentioned this pull request Nov 22, 2026
13 of 38 tasks
@yvonnefroehlich yvonnefroehlich changed the title WIP: DOC/Figure.histogram: Improve docstrings of "fill" and "camp" DOC/Figure.histogram: Improve docstrings of "fill" and "camp" Nov 23, 2026
@yvonnefroehlich yvonnefroehlich changed the title DOC/Figure.histogram: Improve docstrings of "fill" and "camp" DOC/Figure.histogram: Improve docstrings for "fill" and "camp" Nov 23, 2026
@yvonnefroehlich yvonnefroehlich added the needs review This PR has higher priority and needs review. label Nov 23, 2026
@yvonnefroehlich yvonnefroehlich changed the title DOC/Figure.histogram: Improve docstrings for "fill" and "camp" DOC/Figure.histogram: Improve docstrings for parameters "fill" and "camp" Nov 23, 2026
Comment thread pygmt/src/histogram.py Outdated
$cmap
.. note::
Directly using the master CPTs provided by GMT is not supported yet. Use
:func:`Figure.makecpt` to create an appropriate CPT file first and pass

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the hidden cpt works , so calling makecpt or makecpt is necessary, but it can be a hidden cpt or saved to a file

@yvonnefroehlich yvonnefroehlich Nov 23, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I improved the formulation in commit 96308b4 to better clearify the two options.

@seisman
seisman merged commit 869789e into main Nov 24, 2026
22 of 23 checks passed
@seisman
seisman deleted the improve-docs-histo branch November 24, 2026 00:40
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 needs review This PR has higher priority and needs review. skip-changelog Skip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants