diff --git a/Analysis/plot_eddy_contours.py b/Analysis/plot_eddy_contours.py index 373fcc19f1096605b551eabceb25e3529e75c233..5b697bde829cab4143014da6958cb5238b410972 100755 --- a/Analysis/plot_eddy_contours.py +++ b/Analysis/plot_eddy_contours.py @@ -180,7 +180,12 @@ def make_animation(fig, ax, k1, ishape_last, reader_extr, reader_outer, reader_m_s, window, k_min, k_max, light): ishape_lists = {k: select_ishapes(k, k1, ishape_last, reader_extr, window) for k in range(k_min, k_max + 1)} - bbox = compute_bbox(ishape_lists, reader_outer) + + if window is None: + bbox = compute_bbox(ishape_lists, reader_outer) + else: + bbox = window + ani = animation.FuncAnimation(fig, func, range(k_min, k_max + 1), fargs = (ax, ishape_lists, reader_extr, reader_outer, reader_m_s, bbox,