Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
OnnoEbbens committed Jul 20, 2023
1 parent 827495c commit 45a999a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nlmod/plot/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def animate_map(
)
# remove timestamp from title
axtitle = ax.get_title()
axtitle.set_title(axtitle.replace("(t=", "(tstart="))
ax.set_title(axtitle.replace("(t=", "(tstart="))

# add updating title
t = pd.Timestamp(da.time.values[0])
Expand Down Expand Up @@ -585,6 +585,8 @@ def update(iper, pc, title):

# save animation as mp4
if save:
if fname is None:
raise ValueError("please specify a fname or use save=False")
writer = FFMpegWriter(
fps=10,
bitrate=-1,
Expand Down

0 comments on commit 45a999a

Please sign in to comment.