main
John Lauer schematic: L1, C1 and D1 keep their standard symbols with a small 3D chip outline beside each 89dfca2
#!/usr/bin/env python3
"""grid.py out.png cols svg... : render each svg with render.py and montage (400x400 tiles + caption)."""
import subprocess, sys, os, tempfile
from PIL import Image, ImageDraw
out, cols, files = sys.argv[1], int(sys.argv[2]), sys.argv[3:]
H = os.path.dirname(os.path.abspath(__file__))
tiles = []
for f in files:
    t = tempfile.mktemp(suffix=".png")
    subprocess.run([sys.executable, os.path.join(H, "render.py"), t, f], check=True, stdout=subprocess.DEVNULL)
    tiles.append(Image.open(t).crop((0, 0, 400, 420)))
rows = (len(tiles) + cols - 1) // cols
m = Image.new("RGB", (cols * 400, rows * 420), "#0d1117")
for i, t in enumerate(tiles):
    m.paste(t, ((i % cols) * 400, (i // cols) * 420))
m.save(out); print(out)