8000 Fix clipping/zooming of inverted images · firebird00/matplotlib@9e39823 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9e39823

Browse files
committed
Fix clipping/zooming of inverted images
1 parent cdb6771 commit 9e39823

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/matplotlib/image.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,7 @@ def _get_unsampled_image(self, A, image_extents, viewlim):
186186
iy0 = max(0, int(y0 - self._filterrad))
187187
y1 = (viewlim.y1-ymin)/dyintv * numrows
188188
iy1 = min(numrows, int(y1 + self._filterrad))
189-
if self.origin == 'upper':
190-
yslice = slice(numrows-iy1, numrows-iy0)
191-
else:
192-
yslice = slice(iy0, iy1)
189+
yslice = slice(iy0, iy1)
193190
ymin_old = ymin
194191
ymin = ymin_old + iy0*dyintv/numrows
195192
ymax = ymin_old + iy1*dyintv/numrows

0 commit comments

Comments
 (0)
0