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

Use `plt.subplots`

Instead of two calls to plt functions.
parent d0392331
No related branches found
No related tags found
No related merge requests found
......@@ -154,9 +154,8 @@ if __name__ == "__main__":
d_max = SHPC.d_init[0] + SHPC.n_dates[0] - 1
# --
fig = plt.figure()
projection = ccrs.PlateCarree()
ax = plt.axes(projection=projection)
fig, ax = plt.subplots(subplot_kw={"projection": projection})
ani = anim_eddies(fig, ax, SHPC, args.window, d_min, d_max, args.light)
ani.save("eddy_contours.gif", writer="imagemagick")
......
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