Displaying a simple imageΒΆ

Load and display an image

../../../_images/plot_camera_1.png

Python source code: plot_camera.py

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 example: 0.16 seconds ( 0 minutes 0.16 seconds)