From c3441dfb3fdde09008b19a2998331d3fc2dd0cd1 Mon Sep 17 00:00:00 2001 From: Anne Bonner <35413198+bonn0062@users.noreply.github.com> Date: Tue, 21 Jan 2020 07:32:42 -0800 Subject: DOC: NumPy for absolute beginners tutorial (#14546) This absolute beginners tutorial is the output of Anne's Google Season of Docs project. An intermediate version was also published at https://towardsdatascience.com/the-ultimate-beginners-guide-to-numpy-f5a2f99aef54 --- doc/source/user/plots/matplotlib2.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 doc/source/user/plots/matplotlib2.py (limited to 'doc/source/user/plots/matplotlib2.py') diff --git a/doc/source/user/plots/matplotlib2.py b/doc/source/user/plots/matplotlib2.py new file mode 100644 index 000000000..e15986c25 --- /dev/null +++ b/doc/source/user/plots/matplotlib2.py @@ -0,0 +1,8 @@ +import matplotlib.pyplot as plt +import numpy as np + +x = np.linspace(0, 5, 20) +y = np.linspace(0, 10, 20) +plt.plot(x, y, 'purple') # line +plt.plot(x, y, 'o') # dots +plt.show() \ No newline at end of file -- cgit v1.2.1