Skip to content

Commit a9c0ed7

Browse files
Merge pull request #156 from haesleinhuepf/hist3
Bugfix: show max correctly
2 parents bdc93eb + d441e05 commit a9c0ed7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="stackview",
8-
version="0.15.1",
8+
version="0.15.2",
99
author="Robert Haase",
1010
author_email="robert.haase@uni-leipzig.de",
1111
description="Interactive image stack viewing in jupyter notebooks",

stackview/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.15.1"
1+
__version__ = "0.15.2"
22

33
from ._static_view import jupyter_displayable_output, insight
44
from ._utilities import merge_rgb

stackview/_histogram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def create_histogram_plot(image, x, y, width, height):
8383
cropped_image = image[..., y:y+height, x:x+width]
8484

8585
min_val = np.min(cropped_image)
86-
max_val = np.min(cropped_image)
86+
max_val = np.max(cropped_image)
8787

8888
#histogram = np.histogram(cropped_image, bins=256, range=(0, 255))
8989
# plot histogram and store histogram as numpy RGB array

0 commit comments

Comments
 (0)