ncols = 3 nrows = int(np.ceil(len(my_list) / ncols)) ax_width, ax_height = 3, 2 fig, axes = plt.subplots( ncols=ncols, nrows=nrows, figsize=(ax_width * ncols, ax_height * nrows) )