From cc6537b2281a088448df73bfc3d7aec5ab80f1dc Mon Sep 17 00:00:00 2001 From: melissawm Date: Fri, 21 Feb 2020 11:39:18 -0300 Subject: Added plot scripts and reworded to respond to PR comments. --- doc/source/user/plot_gray.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 doc/source/user/plot_gray.py (limited to 'doc/source/user/plot_gray.py') diff --git a/doc/source/user/plot_gray.py b/doc/source/user/plot_gray.py new file mode 100644 index 000000000..6cb46bbe4 --- /dev/null +++ b/doc/source/user/plot_gray.py @@ -0,0 +1,8 @@ +from scipy import misc +import matplotlib.pyplot as plt +import numpy as np + +img = misc.face() +img_array = img / 255 +img_gray = img_array @ [0.2126, 0.7152, 0.0722] +plt.imshow(img_gray, cmap="gray") -- cgit v1.2.1