summaryrefslogtreecommitdiff
path: root/doc/source/user/plots/meshgrid_plot.py
diff options
context:
space:
mode:
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')