Have test_svg use GraphicsLayoutWidget not the Deprecated GraphicsWindow

This commit is contained in:
Ogi Moore 2021-02-11 22:09:36 -08:00
parent 4fcea2762f
commit d14a90112c

View File

@ -14,7 +14,7 @@ def test_plotscene():
tempfilename = tempfile.NamedTemporaryFile(suffix='.svg').name
print("using %s as a temporary file" % tempfilename)
pg.setConfigOption('foreground', (0,0,0))
w = pg.GraphicsWindow()
w = pg.GraphicsLayoutWidget()
w.show()
p1 = w.addPlot()
p2 = w.addPlot()