8000 FIX: image respect norm limits w/ None · matplotlib/matplotlib@9d17f6f · GitHub
[go: up one dir, main page]

Skip to content

Commit 9d17f6f

Browse files
committed
FIX: image respect norm limits w/ None
1 parent 89c3345 commit 9d17f6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,12 +394,12 @@ def _make_image(self, A, in_bbox, out_bbox, clip_bbox, magnification=1.0,
394394
dv = (np.float64(self.norm.vmax) -
395395
np.float64(self.norm.vmin))
396396
vmid = self.norm.vmin + dv / 2
397-
newmin = vmid - dv * 1.e7
397+
newmin = vmid - dv * 1.e4
398398
if newmin < a_min:
399399
newmin = None
400400
else:
401401
a_min = np.float64(newmin)
402-
newmax = vmid + dv * 1.e7
402+
newmax = vmid + dv * 1.e4
403403
if newmax > a_max:
404404
newmax = None
405405
else:

0 commit comments

Comments
 (0)
0