Set viewBox attribute of generated SVG
To allow painless embedding of SVG images, one should compute a suitable viewBox for generated SVG files.
See https://stackoverflow.com/a/19485375/10326136 and https://svgwrite.readthedocs.io/en/latest/classes/mixins.html#viewbox-mixin for more details.