pyqtgraph/tests/imageview/test_imageview.py

13 lines
233 B
Python
Raw Normal View History

import pyqtgraph as pg
import numpy as np
app = pg.mkQApp()
def test_nan_image():
img = np.ones((10,10))
img[0,0] = np.nan
v = pg.image(img)
2016-08-31 22:15:44 +00:00
v.imageItem.getHistogram()
app.processEvents()
v.window().close()