Skip to content

Figure.histogram: Support Pythonic arguments for the 'histtype' parameter - #4912

Merged
seisman merged 15 commits into
mainfrom
histogram/histtype
Oct 22, 2026
Merged

seisman merged 15 commits into
mainfrom
histogram/histtype

Conversation

@seisman

@seisman seisman commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

histtype can be 0-6, which is not readable. This PR uses more readable names.

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

@seisman seisman added the enhancement Improving an existing feature label Sep 22, 2026
@seisman seisman added this to the 0.20.0 milestone Sep 22, 2026
@seisman
seisman marked this pull request as ready for review October 14, 2026 11:41
@seisman seisman added the needs review This PR has higher priority and needs review. label Oct 16, 2026
@seisman seisman added final review call This PR requires final review and approval from a second reviewer and removed needs review This PR has higher priority and needs review. labels Oct 17, 2026
@seisman
seisman requested a review from a team October 19, 2026 11:50
Comment thread pygmt/src/histogram.py Resolved
Comment thread pygmt/src/histogram.py Outdated
reason="Cannot use 'cmap' when 'fill' is a constant color or pattern.",
)

# The legacy syntax gives the histogram type as a string, optionally with the "+w"

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.

Maybe use "old" instead of "legacy"?

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.

Done in f7dcd20.

@seisman
seisman merged commit 5a825d6 into main Oct 22, 2026
20 of 23 checks passed
@seisman
seisman deleted the histogram/histtype branch October 22, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improving an existing feature final review call This PR requires final review and approval from a second reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants