analyses/utils.py
def generate_windows_size(nb: int) -> tuple:
    """
    Defines the number of column and rows of subplots from the number of variables to plot.

    Parameters
    ----------
    nb: int
        Number of variables to plot

    Returns
    -------
    The optimized number of rows and columns
    """

    n_rows = int(round(np.sqrt(nb)))
    return n_rows + 1 if n_rows * n_rows < nb else n_rows, n_rows

    Defines the number of column and rows of subplots from the number of variables to plot.

    Parameters
    ----------
    nb: int
        Number of variables to plot

    Returns
    -------
    The optimized number of rows and columns
    
Defines the number of column and rows of subplots from the number of variables to plot.
Parameters

int
Number of variables to plot

Returns

The optimized number of rows and columns
Defines the number of column and rows of subplots from the number of variables to plot . Parameters int Number of variables to plot Returns The optimized number of rows and columns
def generate_windows_size(nb: int) -> tuple:
    n_rows = int(round(np.sqrt(nb)))
    return n_rows + 1 if n_rows * n_rows < nb else n_rows, n_rows
def generate_windows_size ( nb : int ) -> tuple : n_rows = int ( round ( np . sqrt ( nb ) ) ) return n_rows + 1 if n_rows * n_rows < nb else n_rows , n_rows
Defines the number of column and rows of subplots from the number of variables to plot.
Defines the number of column and rows of subplots from the number of variables to plot .
"""
    Defines the number of column and rows of subplots from the number of variables to plot.

    Parameters
    ----------
    nb: int
        Number of variables to plot

    Returns
    -------
    The optimized number of rows and columns
    """
nb
int