November 2018
Beginner to intermediate
214 pages
5h 2m
English
We also have another option for plotting vectors, and that is by using the streamplot as shown in the following points:
# Stream plotplt.streamplot(x, y, np.gradient(phi)[1], np.gradient(phi)[0])
Following is the output of the preceding code:

In the stream plot, we can specify a density argument that tells us how many of these lines per unit area we get. We can see that a density of 1 gives you more or less what we had before.
Read now
Unlock full access