fliped width and height

the x and y were swaped by my mistake
pull/18/head
derVedro 2017-03-31 00:26:02 +02:00 committed by GitHub
parent f72987d69b
commit 88185419f5
1 changed files with 2 additions and 2 deletions

View File

@ -278,8 +278,8 @@ def disvg(paths=None, colors=None,
# Create an SVG file
if svg_attributes:
szx = svg_attributes.get("height", "100%")
szy = svg_attributes.get("width", "100%")
szx = svg_attributes.get("width", "100%")
szy = svg_attributes.get("height", "100%")
dwg = Drawing(filename=filename, size=(szx, szy), **svg_attributes)
else:
dwg = Drawing(filename=filename, size=(szx, szy), viewBox=viewbox)