3.3.9.2. Displaying a simple imageΒΆ

Load and display an image

../../../_images/sphx_glr_plot_camera_001.png
import matplotlib.pyplot as plt
from skimage import data
camera = data.camera()
plt.figure(figsize=(4, 4))
plt.imshow(camera, cmap='gray', interpolation='nearest')
plt.axis('off')
plt.tight_layout()
plt.show()

Total running time of the script: ( 0 minutes 0.043 seconds)

Gallery generated by Sphinx-Gallery