pygmt.Figure.subplot

Figure.subplot(directive: str, row: int = None, col: int = None, **kwargs)

Manage modern mode figure subplot configuration and selection.

The subplot module is used to split the current figure into a rectangular layout of subplots that each may contain a single self-contained figure. A subplot setup is started with the begin directive that defines the layout of the subplots, while positioning to a particular subplot for plotting is done via the set directive. The subplot process is completed via the end directive.

Full option list at https://docs.generic-mapping-tools.org/latest/subplot.html

Aliases:

  • B = frame

  • F = dimensions

Parameters
  • directive (str) – Either ‘begin’, ‘set’ or ‘end’.

  • row (int) – The number of rows if using the ‘begin’ directive, or the row number if using the ‘set’ directive. First row is 0, not 1.

  • col (int) – The number of columns if using the ‘begin’ directive, or the column number if using the ‘set’ directive. First column is 0, not 1.

  • dimensions (str) – Specify the dimensions of the figure when using the ‘begin’ directive. There are two different ways to do this: (f) Specify overall figure dimensions or (s) specify the dimensions of a single subplot.