From 657ff5095c5ddcc84073678d4203f2cfdd048c50 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Mon, 3 Aug 2020 01:17:33 +0100 Subject: [PATCH] suppress `tight_layout` deprecation warning --- brainweb/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brainweb/utils.py b/brainweb/utils.py index 8937d5f..8033e8e 100644 --- a/brainweb/utils.py +++ b/brainweb/utils.py @@ -364,7 +364,7 @@ def plot_slice(z): ax.set_xticks(()) ax.set_yticks(()) for _ in range(tight_layout): - plt.tight_layout(0, 0, 0) + plt.tight_layout(pad=0, h_pad=0, w_pad=0) # make sure to clear extra axes for ax in axs[axs.index(ax) + 1:]: ax.axis('off')