sidpy.viz.plot_utils.misc.get_plot_grid_size

sidpy.viz.plot_utils.misc.get_plot_grid_size(num_plots, fewer_rows=True)[source]

Returns the number of rows and columns ideal for visualizing multiple (identical) plots within a single figure

Parameters:
  • num_plots (uint) – Number of identical subplots within a figure

  • fewer_rows (bool, optional. Default = True) – Set to True if the grid should be short and wide or False for tall and narrow

Returns:

  • nrows (uint) – Number of rows

  • ncols (uint) – Number of columns