summaryrefslogtreecommitdiff
path: root/doc/source/user/plots/meshgrid_plot.py
blob: 91032145af6887f9d170b1d315676b7e9d05bdfe (plain)
1
2
3
4
5
6
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')