Skip to content

Commit

Permalink
[fixes #1]
Browse files Browse the repository at this point in the history
  • Loading branch information
tboggs committed Mar 12, 2014
1 parent 399e43d commit aab6218
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
# Spectral Python (SPy) package change log
##############################################################################

2014-03-11 tboggs <tboggs@users.sourceforge.net>

[fixed #1] - Pixel row/col is not displayed in imshow window when pixel
row is greater than image width.

* graphics/spypylab.py(ImageView.format_coord): `ncols` -> `nrows`.

2014-02-23 tboggs <tboggs@users.sourceforge.net>

Updated version to 0.14.
Expand Down
2 changes: 1 addition & 1 deletion spectral/graphics/spypylab.py
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ def zoom(self, scale):
def format_coord(self, x, y):
'''Formats pixel coordinate string displayed in the window.'''
(nrows, ncols) = self._image_shape
if x < -0.5 or x > ncols - 0.5 or y < -0.5 or y > ncols - 0.5:
if x < -0.5 or x > ncols - 0.5 or y < -0.5 or y > nrows - 0.5:
return ""
(r, c) = xy_to_rowcol(x, y)
s = 'pixel=[%d,%d]' % (r, c)
Expand Down

0 comments on commit aab6218

Please sign in to comment.