We're updating the default styles for Matplotlib 2.0

Learn what to expect in the new updates


Previous topic

images_contours_and_fields Examples

Next topic

images_contours_and_fields example code: image_demo_clip_path.py

This Page

images_contours_and_fields example code: image_demo.pyΒΆ

(Source code, png, hires.png, pdf)

Simple demo of the imshow function.
import matplotlib.pyplot as plt
import matplotlib.cbook as cbook

image_file = cbook.get_sample_data('ada.png')
image = plt.imread(image_file)

plt.axis('off') # clear x- and y-axes

Keywords: python, matplotlib, pylab, example, codex (see Search examples)