sbplot#

sbplot(rows, columns, grid_position, *properties, ax=None, **kwargs)#

Create an axes in one tile or across two corner tiles.

Unlike matplotlib.pyplot.subplot(), underlying axes are retained. A two-element grid_position describes opposite corners using MATLAB’s one-based, row-major subplot numbering.

Parameters:
  • rows (int) – Number of grid rows.

  • columns (int) – Number of grid columns.

  • grid_position (int | tuple[int, int] | list[int]) – One tile index or two opposite corner indices.

  • *properties (Any) – Optional EEGLAB-style axes property/value pairs. A leading "ax", axes pair uses that axes’ bounds as the tiling region.

  • ax (Axes | None) – Existing axes whose bounds define the tiling region.

  • **kwargs (Any) – Matplotlib axes properties, such as facecolor.

Returns:

The newly created axes.

Return type:

Axes