Skip to content

Commit 915f6a3

Browse files
authored
Merge pull request #464 from OceanParcels/animations_dont_start_from_first_snapshot
Fixing a bug where animations don't include the first snapshot of a particleFile
2 parents 2368add + ba8e0ec commit 915f6a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

parcels/scripts/plottrajectoriesfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def plotTrajectoriesFile(filename, mode='2d', tracerfile=None, tracerfield='P',
100100
else:
101101
scat = ax.scatter(lon[b], lat[b], s=20, color='k')
102102
ttl = ax.set_title('Particles' + titlestr + ' at time ' + str(plottimes[0]))
103-
frames = np.arange(1, len(plottimes))
103+
frames = np.arange(0, len(plottimes))
104104

105105
def animate(t):
106106
b = time == plottimes[t]

0 commit comments

Comments
 (0)