Figure.colorbar: Plot gray scale or color scale bar

Open
#4,243 4 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
Needs clarification
Activity status
Quiet
Tech stack
python
Domain
api

Research direction

Start at the Figure.colorbar API entry point and compare its documented options with GMT's colorbar documentation. Review the unchecked flags and related issues (#4783, #4499, #4501, and #4244) to determine the remaining scope. Done means the remaining agreed options are implemented and the tracked feature work is 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 colorbar 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.

  • -R: region
  • -J: projection
  • -B: label/unit/annot/tick/grid/annot_angle/annot_prefix/annot_unit
  • -C: cmap
  • -D: position/length/width/orientation/reverse/...
  • -F: box
  • -G: truncate
  • -H: newly added in GMT 6.7.0 #4783
  • -I: shading
  • -L
  • -M: monochrome #4499
  • -N: dpi #4501
  • -Q: log #4244
  • -S:
    • +a: annot_angle
    • +c
    • +n
    • +r
    • +s
    • +x: label
    • +y: unit
  • -U: Use Figure.timestamp instead.
  • -V: verbose
  • -W: scale #4244
  • -X/-Y: Use Figure.shift_origin instead.
  • -Z
  • -c: panel
  • -p: perspective
  • -t: transparency
  • --PAR=value: Use pygmt.config instead.

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.