this is a tricky edge case to be sure, but currently if you show an array of all ones:
import numpy as np
from ndv.util import imshow
data = np.ones((10, 10), dtype=np.uint8)
viewer = imshow(data)
you see nothing at all (at least on a black background). the auto-clims make it so that (1, 1) appears black. This only applies to vispy, pygfx shows it as white. but that would be similarly problematic on a white background canvas.
probably no universal solution (options include using a gradient background, and just assuming dark background) but we should be consistent at least
this is a tricky edge case to be sure, but currently if you show an array of all ones:
you see nothing at all (at least on a black background). the auto-clims make it so that (1, 1) appears black. This only applies to vispy, pygfx shows it as white. but that would be similarly problematic on a white background canvas.
probably no universal solution (options include using a gradient background, and just assuming dark background) but we should be consistent at least