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="200" height="200" viewBox="0 0 200 200"> 4<defs> 5<rect x="0" y="0" width="40" height="40" fill="none" stroke-width="2" id="scale10" /> 6</defs> 7<use xlink:href="#scale10" x="10" y="10" stroke="black" /> 8<use xlink:href="#scale10" x="10" y="10" stroke="red" transform="scale(2)" /> 9</svg>