subplots_grid Function

public function subplots_grid(nrows, ncols) result(axes)

Create a subplot grid and return axis indices in row-major order.

Parameters nrows : integer Number of subplot rows. ncols : integer Number of subplot columns.

Returns axes : integer, allocatable(:,:) Row-major subplot index matrix.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: nrows
integer, intent(in) :: ncols

Return Value integer, allocatable, (:,:)