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)
|
buf = QtCore.QBuffer(arr)
|
||||||
svg = QtSvg.QSvgGenerator()
|
svg = QtSvg.QSvgGenerator()
|
||||||
svg.setOutputDevice(buf)
|
svg.setOutputDevice(buf)
|
||||||
dpi = QtGui.QDesktopWidget().physicalDpiX()
|
dpi = QtGui.QDesktopWidget().logicalDpiX()
|
||||||
svg.setResolution(dpi)
|
svg.setResolution(dpi)
|
||||||
|
|
||||||
p = QtGui.QPainter()
|
p = QtGui.QPainter()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user