summaryrefslogtreecommitdiff
path: root/doc/source/user/plots/meshgrid_plot.py
diff options
context:
space:
mode:
authormelissawm <melissawm@gmail.com>2022-07-15 15:08:32 -0300
committermelissawm <melissawm.github@gmail.com>2022-10-03 21:15:41 -0300
commit5c427d6a597f62352e9baf870e1b2edde58bee45 (patch)
tree6643c88bbeb22f04f866fdb65deda4de00a797f2 /doc/source/user/plots/meshgrid_plot.py
parent105e2635324718ccc964cfda68a805a0035ffe6d (diff)
downloadnumpy-5c427d6a597f62352e9baf870e1b2edde58bee45.tar.gz
DOC: How to partition domains
Diffstat (limited to 'doc/source/user/plots/meshgrid_plot.py')
-rw-r--r--doc/source/user/plots/meshgrid_plot.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/source/user/plots/meshgrid_plot.py b/doc/source/user/plots/meshgrid_plot.py
new file mode 100644
index 000000000..91032145a
--- /dev/null
+++ b/doc/source/user/plots/meshgrid_plot.py
@@ -0,0 +1,7 @@
+import numpy as np
+import matplotlib.pyplot as plt
+
+x = np.array([0, 1, 2, 3])
+y = np.array([0, 1, 2, 3, 4, 5])
+xx, yy = np.meshgrid(x, y)
+plt.plot(xx, yy, marker='o', color='k', linestyle='none')