mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-11 12:43:04 +08:00
Merge pull request #301 from tonysyu/viewer-user-guide
DOC: Add Viewer Quickstart to User Guide.
This commit is contained in:
@@ -144,6 +144,8 @@ class ImageViewer(QMainWindow):
|
||||
self._img = image
|
||||
self._image_plot.set_array(image)
|
||||
clim = dtype_range[image.dtype.type]
|
||||
if clim[0] < 0 and image.min() >= 0:
|
||||
clim = (0, clim[1])
|
||||
self._image_plot.set_clim(clim)
|
||||
self.redraw()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user