From 143cc95109a6c981f12d65c88cf324de1b39efd7 Mon Sep 17 00:00:00 2001 From: Andi Gerken <andi.gerken@gmail.com> Date: Mon, 14 Feb 2022 15:34:53 +0100 Subject: [PATCH] Fixed iid follow --- src/robofish/evaluate/evaluate.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/robofish/evaluate/evaluate.py b/src/robofish/evaluate/evaluate.py index 7b83ee1..88edead 100644 --- a/src/robofish/evaluate/evaluate.py +++ b/src/robofish/evaluate/evaluate.py @@ -539,14 +539,17 @@ def evaluate_follow_iid( legend=True, joint_kws={"bins": 50}, ) - grid.fig.set_figwidth(9) - grid.fig.set_figheight(6) - grid.fig.subplots_adjust(top=0.9) + # grid.fig.set_figwidth(9) + # grid.fig.set_figheight(6) + # grid.fig.subplots_adjust(top=0.9) grids.append(grid) - fig = plt.figure(figsize=(8 * len(grids), 8)) + # This is neccessary because joint plot does not receive an ax object. + # It creates issues with too many plots though + # Created an issue + fig = plt.figure(figsize=(6 * len(grids), 6)) - fig.suptitle("follow/iid: from left to right: " + str(labels), fontsize=16) + fig.suptitle(f"follow/iid: from left to right:\n{', '.join(labels)}", fontsize=12) gs = gridspec.GridSpec(1, len(grids)) for i in range(len(grids)): -- GitLab