Note
Go to the end to download the full example code.
2.6.8.1. Displaying a Raccoon FaceΒΆ
Small example to plot a raccoon face.
import scipy as sp
import imageio.v3 as iio
f = sp.datasets.face()
iio.imwrite("face.png", f) # uses the Image module (PIL)
import matplotlib.pyplot as plt
plt.imshow(f)
plt.show()
Total running time of the script: (0 minutes 0.530 seconds)