Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions flopy/plot/crosssection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1069,8 +1069,9 @@ def plot_pathline(
markers = []
for _, arr in plines.items():
arr = np.array(arr)
arr = arr[arr[:, 0].argsort()]
linecol.append(arr)
# sort by travel time
arr = arr[arr[:, -1].argsort()]
linecol.append(arr[:, :-1])
if marker is not None:
for xy in arr[::markerevery]:
markers.append(xy)
Expand Down
8 changes: 3 additions & 5 deletions flopy/plot/plotutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -2681,9 +2681,7 @@ def intersect_modpath_with_crosssection(
nppts = {}

for cell, verts in projpts.items():
tcell = cell
while tcell >= ncpl:
tcell -= ncpl
tcell = cell % ncpl
zmin = np.min(np.array(verts)[:, 1])
zmax = np.max(np.array(verts)[:, 1])
nmin = np.min(v_norm[tcell])
Expand Down Expand Up @@ -2807,7 +2805,7 @@ def reproject_modpath_to_crosssection(
rec[xp] = x
rec[yp] = y
pid = rec["particleid"][0]
pline = list(zip(rec[proj], rec[zp]))
pline = list(zip(rec[proj], rec[zp], rec["time"]))
if pid not in ptdict:
ptdict[pid] = pline
else:
Expand All @@ -2825,7 +2823,7 @@ def reproject_modpath_to_crosssection(
rec[xp] = x
rec[yp] = y
pid = rec["particleid"][0]
pline = list(zip(rec[proj], rec[zp]))
pline = list(zip(rec[proj], rec[zp], rec["time"]))
if pid not in ptdict:
ptdict[pid] = pline
else:
Expand Down