Figure.histogram: Calculate and plot histograms

Open
#4,251 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start with the pygmt.Figure.histogram API documentation and compare its supported options with the GMT histogram documentation. Review the checked and unchecked option list and the project board to identify the remaining scope. Done means the initial histogram implementation and its tutorial or gallery example are complete.

Written by the indexing model from the issue text.

Description

feature request

This issue serves as the central place for discussing and tracking the implementation of the histogram method in PyGMT. The issue will be closed when the initial implementation is complete. Progress is tracked at https://github.com/orgs/GenericMappingTools/projects/3.

Documentation

GMT Option Flags and Modifiers

☑️: Implemented; ⬜: To be implemented/discussed; Strikethrough: Won't implement.

  • table: data
  • -A: horizontal #4880
  • -B: frame
  • -C: cmap, fill #4886
  • -D: annot, annot_position, annot_font, annot_offset, annot_orientation #4895
  • -E: bar_width, bar_offset #4316
  • -F: center #4896
  • -G: fill
  • -I: Inquiry mode. This can be done by np.histogram. So who need it in PyGMT?
  • -Jx|X: projection
  • -L: out_range #4882
  • -N: distribution, distribution_pen #4894
  • -Q: cumulative #4881
  • -R: region
  • -S: stairs #4884
  • -T: series #4899
  • -U: Use Figure.timestamp instead.
  • -V: verbose
  • -W: pen
  • -X/-Y: Use Figure.shift_origin instead.
  • -Z:
    • histtype #4912
    • weights #4890
  • -bi
  • -c: panel
  • -di
  • -e
  • -f
  • -h
  • -i: incols
  • -l: label
  • -o
  • -p: perspective
  • -qi
  • -s
  • -t: transparency
  • -w
  • --PAR=value: Use pygmt.config instead.

Notes on Input Formats

Add any notes on the input formats, especially the meaning of columns.

Linked Pull Requests

  • Initial feature implementation
  • Add a tutorial or gallery example

Related Issues and Discussions

Add links to related wrapper discussions, API design threads, or upstream GMT changes here.

Dominant language
Python
Stars
882
Forks
261
Avg merge
1d 3h
Merged PRs (30d)
29

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GenericMappingTools/pygmt

All issues in GenericMappingTools/pygmt

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.