A class of mathematical models called random sequential adsorption (RSA) models deals with the patterns that result when two-dimensional shapes are randomly deposited onto a plane. The following method can be used to visualize these kinds of models:
# Since the circles are random, your plot will not # look exactly like the example! circle_list = [] for i in range(15): x = -5 + 10 * random() y = -5 + 10 * random() circle_list.append(circle((x, y), 1, facecolor='red', edgecolor=(0, 0, 1), thickness=2, fill=True)) gr = sum(circle_list) gr.axes(False) gr.show(aspect_ratio=1, frame=True, gridlines=True, figsize=(4, 4))
You should get a plot that resembles the one below. Because the positions of the circles are randomly generated, your plot will not look exactly like this one.