Use the python script inside inkscape (inkscape/usr/share/inkscape/extensions/dxf_input.py) to convert DXF to SVG We want to make it a "web service", which means we ...
Generally, when creating figures, I use matplotlib and seaborn to create and save plots as svgs (an open standard for vector graphics) and combine them, possibly with some text, using svgutils.