Remove axes from plotcurveitem test--fonts differ across platforms.
This commit is contained in:
parent
e0a5dae1d5
commit
5171e1f1c7
@ -4,13 +4,15 @@ from pyqtgraph.tests import assertImageApproved
|
|||||||
|
|
||||||
|
|
||||||
def test_PlotCurveItem():
|
def test_PlotCurveItem():
|
||||||
p = pg.plot()
|
p = pg.GraphicsWindow()
|
||||||
|
v = p.addViewBox()
|
||||||
p.resize(200, 150)
|
p.resize(200, 150)
|
||||||
data = np.array([1,4,2,3,np.inf,5,7,6,-np.inf,8,10,9,np.nan,-1,-2,0])
|
data = np.array([1,4,2,3,np.inf,5,7,6,-np.inf,8,10,9,np.nan,-1,-2,0])
|
||||||
c = pg.PlotCurveItem(data)
|
c = pg.PlotCurveItem(data)
|
||||||
p.addItem(c)
|
v.addItem(c)
|
||||||
p.autoRange()
|
v.autoRange()
|
||||||
|
|
||||||
|
assert np.allclose(v.viewRange(), [[-1.1457564053237301, 16.145756405323731], [-3.076811473165955, 11.076811473165955]])
|
||||||
assertImageApproved(p, 'plotcurveitem/connectall', "Plot curve with all points connected.")
|
assertImageApproved(p, 'plotcurveitem/connectall', "Plot curve with all points connected.")
|
||||||
|
|
||||||
c.setData(data, connect='pairs')
|
c.setData(data, connect='pairs')
|
||||||
|
@ -62,7 +62,7 @@ from .. import ImageItem, TextItem
|
|||||||
# This tag marks the test-data commit that this version of pyqtgraph should
|
# This tag marks the test-data commit that this version of pyqtgraph should
|
||||||
# be tested against. When adding or changing test images, create
|
# be tested against. When adding or changing test images, create
|
||||||
# and push a new tag and update this variable.
|
# and push a new tag and update this variable.
|
||||||
testDataTag = 'test-data-2'
|
testDataTag = 'test-data-3'
|
||||||
|
|
||||||
|
|
||||||
tester = None
|
tester = None
|
||||||
|
Loading…
Reference in New Issue
Block a user