Skip to content
Snippets Groups Projects
Commit 3fac0f2c authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Rename function `make_animation` to `anim_eddies`

`make_animation` seems too general, the reader may think it is an
object of Matplotlib.
parent 4746100b
No related branches found
No related tags found
No related merge requests found
......@@ -33,8 +33,8 @@ def func(d, ax, ishape_lists, readers, bbox, light):
ax.coastlines()
ax.set_title(f"d = {d}", y = 1.05)
def make_animation(fig, ax, d_init, ishape_last, readers, window, d_min, d_max,
light):
def anim_eddies(fig, ax, d_init, ishape_last, readers, window, d_min, d_max,
light):
ishape_lists = {d: plot_eddy_contours.select_ishapes(d, d_init, ishape_last,
readers["extremum"],
window)
......@@ -86,9 +86,9 @@ if __name__ == "__main__":
fig = plt.figure()
projection = ccrs.PlateCarree()
ax = plt.axes(projection = projection)
ani = make_animation(fig, ax, d_init, ishape_last, readers,
window = args.window, d_min = args.d_min,
d_max = args.d_max, light = args.light)
ani = anim_eddies(fig, ax, d_init, ishape_last, readers,
window = args.window, d_min = args.d_min,
d_max = args.d_max, light = args.light)
ani.save("eddy_contours.gif", writer = "imagemagick")
pygifsicle.gifsicle("eddy_contours.gif", options = ["--no-loopcount"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment