aesthetics-of-the-commons
clone your own copy | download snapshot

Snapshots | iceberg

No images in this repository’s iceberg at this time

Inside this repository

combine.py
text/x-python

Download raw (470 bytes)

#! /usr/bin/env python3


import svgutils.transform as sg
import sys 


#create new SVG figure
fig = sg.SVGFigure("12cm", "20cm")


for i in sys.argv[1:]:
    fig1 = sg.fromfile(i)

    plot1 = fig1.getroot()

    group1 = sg.GroupElement([plot1], attrib={"{http://www.inkscape.org/namespaces/inkscape}label": "Layer 1", "{http://www.inkscape.org/namespaces/inkscape}groupmode": "layer"})

    fig.append([group1])

# save generated SVG files
fig.save("fig_final.svg")