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