From 482ca528f62812036e0d8b55a86624b4bf40c4bb Mon Sep 17 00:00:00 2001 From: Gabriele Buondonno Date: Mon, 19 Oct 2020 11:11:45 +0200 Subject: [PATCH] [SVGExporter] Remove f-strings --- pyqtgraph/exporters/SVGExporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyqtgraph/exporters/SVGExporter.py b/pyqtgraph/exporters/SVGExporter.py index 751a10c1..ac51732f 100644 --- a/pyqtgraph/exporters/SVGExporter.py +++ b/pyqtgraph/exporters/SVGExporter.py @@ -114,9 +114,9 @@ def generateSvg(item, options={}): for d in defs: defsXml += d.toprettyxml(indent=' ') defsXml += "\n" - svgAttributes = f' viewBox ="0 0 {options["width"]} {options["height"]}"' + svgAttributes = ' viewBox ="0 0 %f %f"' % (options["width"], options["height"]) c = options['background'] - backgroundtag = f'\n' + backgroundtag = '\n' % (c.red(), c.blue(), c.green(), c.alpha()/255.0) return (xmlHeader % svgAttributes) + backgroundtag + defsXml + node.toprettyxml(indent=' ') + "\n\n"