Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54eaa89 commit 281081bCopy full SHA for 281081b
3 files changed
examples/images_contours_and_fields/imshow_demo.py
@@ -0,0 +1,14 @@
1
+"""
2
+Simple demo of the imshow function.
3
4
+import numpy as np
5
+import matplotlib.pyplot as plt
6
+import matplotlib.cbook as cbook
7
+
8
+image_file = cbook.get_sample_data('lena.npy')
9
+image = np.load(image_file)
10
11
+plt.imshow(image)
12
+plt.axis('off') # clear x- and y-axes
13
+plt.show()
14
examples/pylab_examples/image_demo3.py
lib/matplotlib/mpl-data/sample_data/lena.npy
192 KB
0 commit comments