Add an element to an SVG document, replacing a target element
insert_svg(doc, label, insert_file, dpi = 150)The modified xml2 SVG document (doc) with the svg file added and the target removed
An xml2 SVG document
The label of the target element to be replaced
Path to the SVG file to be inserted
The resolution to use when interpreting pixel units