Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10139d1

Browse files
committed
Styling changes
1 parent 815d10a commit 10139d1

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
@@ -363,8 +363,8 @@ def _make_image(self, A, in_bbox, out_bbox, clip_bbox, magnification=1.0,
363363
if inp_dtype.kind == 'f':
364364
scaled_dtype = A.dtype
365365
# Cast to float64
366-
if not (A.dtype == np.float32 or A.dtype == np.float16):
367-
if (A.dtype != np.float64):
366+
if A.dtype not in (np.float32, np.float16):
367+
if A.dtype != np.float64:
368368
warnings.warn(
369369
"Casting input data from '{0}' to 'float64'"
370370
"for imshow".format(A.dtype))

0 commit comments

Comments
 (0)