Skip to content

Commit 8397c08

Browse files
committed
Fix for the latest pyqtgraph 0.10
1 parent d8f221a commit 8397c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orange/widgets/utils/classdensity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def class_density_image(min_x, max_x, min_y, max_y, resolution, x_data, y_data,
2727
y_grid_norm = (np.array(y_grid)-min_y)/(max_y-min_y)
2828
img = compute_density(x_grid_norm, y_grid_norm,
2929
x_data_norm[sample], y_data_norm[sample], np.array(rgb_data)[sample])
30-
density_img = ImageItem(img, autoLevels=False)
30+
density_img = ImageItem(img.astype(np.uint8), autoLevels=False)
3131
density_img.setRect(QRectF(min_x-x_sz/2, min_y-y_sz/2,
3232
max_x-min_x+x_sz, max_y-min_y+y_sz))
3333
density_img.setZValue(-1)

0 commit comments

Comments
 (0)