def get_dims(plot_objs):
    """
    Gets the appropriate dimensions for the amount of objects going to be plotted.
    Adds columns before rows.
    """
    total = len(plot_objs)
    row, col = 1, 1
    while True:
        if row * col >= total:
            break
        elif col == row:
            col += 1
        else:
            row += 1 
    return (row, col)