Add tests for nonstandard images

This commit is contained in:
Juan Nunez-Iglesias committed 2015-01-14 20:29:15 +11:00
1 parent 176889933f
commit 9fe4f33793
2 files changed
+27

No files matched your search

+1
View File
@@ -40,6 +40,7 @@ def imshow(im, *args, **kwargs):
# display range starts at 0 for nonnegative images
lo = 0
else:
lo, hi = immin, immax
warnings.warn("Non-standard image type; displaying image with "
"stretched contrast.")
out_of_range_float = (np.issubdtype(im.dtype, np.float) and