Skip to content

Commit 9899143

Browse files
committed
Suppress imshow warning.
1 parent 2f3e464 commit 9899143

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
@@ -405,7 +405,7 @@ approx_img.shape
405405
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:
406406

407407
```{code-cell}
408-
plt.imshow(np.transpose(approx_img, (1, 2, 0)))
408+
plt.imshow(np.transpose(np.clip(approx_img, 0, 1), (1, 2, 0)))
409409
plt.show()
410410
```
411411

0 commit comments

Comments
 (0)