saving removes bad characters
This commit is contained in:
@ -578,16 +578,16 @@ class QGraphWindow(QtWidgets.QGraphicsView, Ui_GraphWindow):
|
||||
|
||||
if suffix == '.pdf':
|
||||
from ..io.exporters import PDFPrintExporter
|
||||
PDFPrintExporter(self.graphic).export(outfile)
|
||||
PDFPrintExporter(self.graphic).export(str(outfile))
|
||||
|
||||
elif suffix == '.svg':
|
||||
from pyqtgraph.exporters import SVGExporter
|
||||
SVGExporter(self.scene).export(outfile)
|
||||
SVGExporter(self.scene).export(str(outfile))
|
||||
|
||||
else:
|
||||
from pyqtgraph.exporters import ImageExporter
|
||||
|
||||
ImageExporter(self.scene).export(outfile)
|
||||
ImageExporter(self.scene).export(str(outfile))
|
||||
|
||||
self.set_color(foreground=fg_color, background=bg_color)
|
||||
|
||||
|
Reference in New Issue
Block a user