# 2D-vectorveld import matplotlib.pyplot as plt import numpy as np plt.figure (figsize = (8, 8)) x, y = np.meshgrid (np.linspace (-2, 2, 10), np.linspace (-2, 2, 10)) u = (x - y) / np.sqrt (x**2 + y**2) v = (y + x) / np.sqrt (x**2 + y**2) plt.quiver (x, y, u, v, color = "peru") plt.grid () plt.show ()