craiyon logo

A minimalist room with a full-length mirror, a black bench, and four hooks labeled H1-H4 on a white wall with a gray stripe.

A minimalist room with a full-length mirror, a black bench, and four hooks labeled H1-H4 on a white wall with a gray stripe.

import matplotlib.pyplot as plt import matplotlib.patches as patches # ---------------------------- # DIMENSIONS (cm) # ---------------------------- W = 150 # wall width H = 250 # wall height mirror_w = 60 mirror_h = 216 mirror_x = (W - mirror_w) / 2 mirror_y = 10 # small floor clearance hook_y = 165 hooks = [ (15, hook_y), (30, hook_y), (120, hook_y), (135, hook_y) ] bench_w = 70 bench_d = 30 bench_x = (W - bench_w) / 2 bench_y = 20 # ---------------------------- # FIGURE SETUP # ---------------------------- fig, ax = plt.subplots(figsize=(6, 10)) # ---------------------------- # WALL # ---------------------------- wall = patches.Rectangle((0, 0), W, H, linewidth=2, edgecolor='black', facecolor='white') ax.add_patch(wall) # ---------------------------- # TILE BAND (7 cm) # ---------------------------- tile_y = 120 tile = patches.Rectangle((0, tile_y), W, 7, linewidth=1, edgecolor='gray', facecolor='#e6e6e6') ax.add_patch(tile) # ---------------------------- # MIRROR # ---------------------------- mirror = patches.Rectangle((mirror_x, mirror_y), mirror_w, mirror_h, linewidth=2, edgecolor='black', facecolor='#d9d9d9') ax.add_patch(mirror) # ---------------------------- # HOOKS # ---------------------------- for i, (x, y) in enumerate(hooks): ax.add_patch(patches.Circle((x, y), 1.5, color='black')) ax.text(x, y + 4, f"H{i+1}", ha='center', fontsize=8) # ---------------------------- # BENCH # ---------------------------- bench = patches.Rectangle((bench_x, bench_y), bench_w, Mehr sehen