def get_tiles_height_width_ratio(n_tiles, width_ratio=1.0):
 width = int(np.ceil(np.sqrt((n_tiles * width_ratio))))
 return get_tiles_height_width(n_tiles, desired_width=width)

def get_tiles_height_width_ratio ( n_tiles , width_ratio = 1.0 ) : width = int ( np . ceil ( np . sqrt ( ( n_tiles * width_ratio ) ) ) ) return get_tiles_height_width ( n_tiles , desired_width = width )
get a height x width size that will fit n_tiles tiles .