Skip to content

Commit

Permalink
bug fix in plot trajectories
Browse files Browse the repository at this point in the history
  • Loading branch information
ronshnapp committed Oct 24, 2024
1 parent 7e861ad commit cd9378c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions myptv/makePlots/plot_trajectories.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ def plot_trajectories(fname, min_length, write_trajID=False, t0=0, te=-1):
ys = trajectories[id_][i0:ie,2]
zs = trajectories[id_][i0:ie,3]
c = (1-(xs[0]-xmin)/(xmax-xmin)*0.97,
(ys[1]-ymin)/(ymax-ymin)*0.97,
(zs[2]-zmin)/(zmax-zmin)*0.97)
(ys[0]-ymin)/(ymax-ymin)*0.97,
(zs[0]-zmin)/(zmax-zmin)*0.97)
l = ax.plot(xs, zs, ys, 'o-', ms=1, lw=0.5, color=c)

xm.append(amin(xs)) ; xm.append(amax(xs))
Expand Down

0 comments on commit cd9378c

Please sign in to comment.