From 7a2fa90e6f2782f2679f55709b2578fb6a3c82cd Mon Sep 17 00:00:00 2001 From: Mathis Hocke <mathis.hocke@fu-berlin.de> Date: Thu, 24 Mar 2022 16:25:45 +0100 Subject: [PATCH] Disable blit on macOS blit is supposed to improve performance on systems that support it. macOS does not support it and shows a gray square when blit=True --- src/robofish/io/file.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/robofish/io/file.py b/src/robofish/io/file.py index cdb2aed..40097b5 100644 --- a/src/robofish/io/file.py +++ b/src/robofish/io/file.py @@ -32,6 +32,7 @@ import deprecation import types import warnings from textwrap import wrap +import platform import matplotlib as mpl import matplotlib.pyplot as plt @@ -1127,7 +1128,7 @@ class File(h5py.File): update, frames=n_frames, init_func=init, - blit=True, + blit=platform.system() != "Darwin", interval=self.frequency, repeat=False, ) -- GitLab