sensortoolkit.plotting._plot_formatting.subplot_dims

subplot_dims(n_sensors)[source]

Recommends subplot dimensions based on the nearest perfect square for number of sensors (except when n%10, n_cols in multiples of 5)

Parameters

n_sensors (int) – The number of sensors in the deployment group.

Returns

Two-element tuple containing:

  • n_rows (int): The number of subplot rows.

  • n_cols (int): The number of subplot columns.

Return type

(tuple)