Skip to content

Figure.text: Plot or typeset text #4544

Closed

Description

@seisman

This issue serves as the central place for discussing and tracking the implementation of the text method in PyGMT. The issue will be closed when the initial implementation is complete. Progress is tracked at PyGMT: Wrapping GMT modules.

Documentation

GMT Option Flags and Modifiers

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

  • -B: frame
  • -C: clearance
  • -D: offset
  • -F: angle, position, justify, font
  • -G: fill
  • -J: projection
  • -N: no_clip
  • -Q
  • -R: region
  • -U: Use Figure.timestamp instead.
  • -V: verbose
  • -W: pen
  • -X/-Y: Use Figure.shift_origin instead.
  • -Z
  • -a: aspatial
  • -c: panel
  • -e: find
  • -f: coltypes
  • -h: header
  • -it: use_word
  • -p: perspective
  • -t: transparency
  • -w: wrap
  • --PAR=value: Use pygmt.config instead.

Related GMT configurations

List any related GMT configurations that may affect the behavior.

Notes on Input Formats

The method accepts text data provided as:

  • A file name or list of file names containing records of (x, y [, angle, font, justify,] text)
  • Separate x/y coordinate arrays together with a text string or string array
  • A position justification code together with a single text string

The angle, font, and justify columns/parameters are optional and can be
supplied as scalars or arrays (when using x/y/text input).

Non-ASCII characters are supported via the Adobe ISOLatin1+, Adobe Symbol,
Adobe ZapfDingbats, and ISO-8859-x encodings (see :doc:/techref/encodings).
For multi-paragraph typesetting, use Figure.paragraph instead.

Linked Pull Requests

Add links to related pull requests here.

Related Issues and Discussions

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

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

    feature request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions