Skip to content

Figure.plot/Figure.plot3d: Plot lines, polygons, and symbols in 2-D and 3-D #4545

Closed

Description

@seisman

This issue serves as the central place for discussing and tracking the
implementation of the plot and plot3d methods in PyGMT. The two
methods are closely related 2-D / 3-D variants and are tracked together
to avoid duplication. The issue will be closed when the initial
implementation of both methods is complete. Progress is tracked at
PyGMT: Wrapping GMT modules.

Documentation

Figure.plot

Figure.plot3d

GMT Option Flags and Modifiers

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

Shared options (Figure.plot and Figure.plot3d)

  • -A: straight_line
  • -B: frame
  • -C: cmap
  • -D: offset
  • -G: fill
  • -I: intensity
  • -J: projection
  • -L: close
  • -N: no_clip
  • -R: region
  • -S: style
  • -U: Use Figure.timestamp instead.
  • -V: verbose
  • -W: pen
  • -X/-Y: Use Figure.shift_origin instead.
  • -Z: zvalue
  • -a: aspatial
  • -b: binary
  • -c: panel
  • -d: nodata
  • -e: find
  • -f: coltypes
  • -g: gap
  • -h: header
  • -i: incols
  • -l: label
  • -p: perspective
  • -t: transparency
  • -w: wrap
  • --PAR=value: Use pygmt.config instead.

Figure.plot only

  • -E: error_bar
  • -F: connection
  • -M: fill_between

Figure.plot3d only

  • -Jz/-JZ: zscale/zsize
  • -Q: no_sort

Notes on Input Formats

Both methods accept data provided as:

  • A file name or 2-D array/DataFrame/etc. passed via the data parameter.
  • Separate x/y (and z for plot3d) coordinate arrays.

When using x/y[/z], the following can additionally be 1-D arrays:
fill (requires cmap=True), size, intensity, symbol, transparency.

Figure.plot also accepts a direction list of two 1-D arrays for vector
styles (style="V" or style="v"); Figure.plot3d supports the same.

Related GMT Configurations

List any related GMT configurations that may affect the behavior.

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