summaryrefslogtreecommitdiff
path: root/doc/source/user/plots/matplotlib2.py
diff options
context:
space:
mode:
authorAnne Bonner <35413198+bonn0062@users.noreply.github.com>2020-01-21 07:32:42 -0800
committerRalf Gommers <ralf.gommers@gmail.com>2020-01-21 16:32:42 +0100
commitc3441dfb3fdde09008b19a2998331d3fc2dd0cd1 (patch)
tree997bfe1940cf5f207c93bf709de7c7f15d4a39a3 /doc/source/user/plots/matplotlib2.py
parentbe8f93cbfd5cec2f58bc15a54e602f74bd908ab3 (diff)
downloadnumpy-c3441dfb3fdde09008b19a2998331d3fc2dd0cd1.tar.gz
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
Diffstat (limited to 'doc/source/user/plots/matplotlib2.py')
-rw-r--r--doc/source/user/plots/matplotlib2.py8
1 files changed, 8 insertions, 0 deletions
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