pygmt.subplots

pygmt.subplots(nrows=1, ncols=1, figsize=(6.4, 4.8), **kwargs)[source]

Create a figure with a set of subplots.

Parameters
  • nrows (int) – Number of rows of the subplot grid.

  • ncols (int) – Number of columns of the subplot grid.

  • figsize (tuple) – Figure dimensions as (width, height).

Returns

  • fig (pygmt.Figure) – A PyGMT Figure instance.

  • axs (numpy.ndarray) – Array of Axes objects.

Examples using pygmt.subplots