Skip to content

Commit f2a177a

Browse files
committed
Suppress imshow warning.
1 parent 177661f commit f2a177a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/tutorial-svd.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ approx_img.shape
390390
which is not the right shape for showing the image. Finally, reordering the axes back to our original shape of `(768, 1024, 3)`, we can see our approximation:
391391

392392
```{code-cell}
393-
plt.imshow(np.transpose(approx_img, (1, 2, 0)))
393+
plt.imshow(np.transpose(np.clip(approx_img, 0, 1), (1, 2, 0)))
394394
plt.show()
395395
```
396396

0 commit comments

Comments
 (0)