Merge pull request #641 from markotoplak/qt5_axis_scale
SVGExporter: fix axes position and scale
This commit is contained in:
commit
d1c027b87d
@ -169,7 +169,7 @@ def _generateItemSvg(item, nodes=None, root=None):
|
||||
buf = QtCore.QBuffer(arr)
|
||||
svg = QtSvg.QSvgGenerator()
|
||||
svg.setOutputDevice(buf)
|
||||
dpi = QtGui.QDesktopWidget().physicalDpiX()
|
||||
dpi = QtGui.QDesktopWidget().logicalDpiX()
|
||||
svg.setResolution(dpi)
|
||||
|
||||
p = QtGui.QPainter()
|
||||
|
Loading…
Reference in New Issue
Block a user