You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Choosing two starting points in the same streamline in pyplot.streamplot lead to
an InvalidIndexError.
Minimal non-working example :
importnumpyasnpimportmatplotlib.pyplotasplt# Datax=np.linspace(-10, 10, 10)
y=np.linspace(-10, 10, 10)
X, Y=np.meshgrid(x, y)
U=X*0+1V=X*0start_points=np.array([[0, 0], [5, 0]])
# streamline plot with aligned starting pointsplt.figure()
sp=plt.streamplot(x, y, U, V, start_points=start_points,
color='r')
plt.show()
Maybe a better behaviour would be to skip the points responsible for the conflicts, i.e replacing in streamplot.py (in get_integrator(), integrate()): dmap.start_trajectory(x0, y0)
by
Choosing two starting points in the same streamline in
pyplot.streamplot
lead toan
InvalidIndexError
.Minimal non-working example :
Maybe a better behaviour would be to skip the points responsible for the conflicts, i.e replacing in streamplot.py (in get_integrator(), integrate()):
dmap.start_trajectory(x0, y0)
by
The text was updated successfully, but these errors were encountered: