Programmatically generate SVG (vector) images, animations, and interactive Jupyter widgets
1<?xml version="1.0" encoding="UTF-8"?> 2<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" 3 width="220" height="170" viewBox="0 0 220 170"> 4<defs> 5<g id="house" fill="none" stroke="black"> 6<rect x="6" y="50" width="60" height="60" /> 7<path d="M6,50 L36,9 L66,50" /> 8<path d="M36,110 L36,80 L50,80 L50,110" /> 9</g> 10</defs> 11<use xlink:href="#house" /> 12<use xlink:href="#house" x="100" y="50" /> 13<use xlink:href="#house" x="150" y="20" /> 14</svg>