문제

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