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="150" height="100" viewBox="0 0 150 100"> 4<defs> 5</defs> 6<path d="M10,15 L50,15" stroke="black" stroke-width="15" stroke-linecap="butt" /> 7<path d="M10,45 L50,45" stroke="black" stroke-width="15" stroke-linecap="round" /> 8<path d="M10,75 L50,75" stroke="black" stroke-width="15" stroke-linecap="square" /> 9<path d="M10,0 L10,100" stroke="#999" /> 10<path d="M50,0 L50,100" stroke="#999" /> 11</svg>