How do I generate equidistant starting points for streamlines on the top edge? Now the streamlines are not equally spaced on the top edge, as in the image below. The image has aspect ratio = 3:1; I used density = (2,0.67)

enter image description here

有帮助吗?

解决方案

You simply can't. citing the documentation, streamplot operates in a way that:

"Each cell in the grid can have, at most, one traversing streamline" (link)

Usually playing with the parameter density helps anyway.

You could always 'manually' integrate each streamline starting from your equispaced points of interest.

In case the data above has an exact left-rigth symmetry (Can't be sure by just looking at the pic) you may get a better result with the solution I gave here: here.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top