Plot 3d vector field matplotlib. pyplot as plt import numpy as np fig = plt.