From 2eafcec413407aafd9ecd84c1f21a150fbcde849 Mon Sep 17 00:00:00 2001 From: Rafael Mosca Date: Sun, 14 Feb 2021 19:35:28 +0100 Subject: [PATCH] Update viz.py --- aertb/core/viz.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aertb/core/viz.py b/aertb/core/viz.py index 4568bd2..15984d8 100644 --- a/aertb/core/viz.py +++ b/aertb/core/viz.py @@ -97,7 +97,7 @@ def get_frame(frame_events, f_type): min_ts = events[0]['ts'] delta = duration / n_frames - camera_size = (max(events['x'])+1, max(events['y'])+1) + camera_size = (max(events['y'])+1, max(events['x'])+1) if f_type == 'decay': tau = kwargs.get('tau', delta) @@ -111,4 +111,4 @@ def get_frame(frame_events, f_type): frames.append(frame) duration = kwargs.get('duration', 2) - gif.save(frames, filename, duration=200) \ No newline at end of file + gif.save(frames, filename, duration=200)