# 3D-vectorveld import matplotlib.pyplot as plt import numpy as np x, y, z = np.meshgrid (np.arange (-2, 2, 0.6), np.arange (-2, 2, 0.6), np.arange (-2, 2, 0.6)) u = x / np.sqrt (x**2 + y**2 + z**2) v = y / np.sqrt (x**2 + y**2 + z**2) w = z / np.sqrt (x**2 + y**2 + z**2) plt.figure (figsize = (8, 8)) ax = plt.axes (projection = "3d") q = ax.quiver (x, y, z, u, v, w, color = "red", length = 0.4) plt.show ()