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)