Merge pull request #1156 from 2xB/2xb-fix-1155

SVGExporter: Correct image pixelation.
This commit is contained in:
Ogi Moore 2020-04-09 07:52:46 -07:00 committed by GitHub
commit 6f4048596b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,6 +69,13 @@ xmlHeader = """\
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.2" baseProfile="tiny">
<title>pyqtgraph SVG export</title>
<desc>Generated with Qt and pyqtgraph</desc>
<style>
image {
image-rendering: crisp-edges;
image-rendering: -moz-crisp-edges;
image-rendering: pixelated;
}
</style>
"""
def generateSvg(item, options={}):