From e88b6781c0a2698392635cf1559a52ff811cfff9 Mon Sep 17 00:00:00 2001 From: Vitor Heidrich <72625631+vitorheidrich@users.noreply.github.com> Date: Fri, 13 Jan 2023 22:47:27 -0300 Subject: [PATCH] Pass vmin and vmax inside norm Since matplotlib 3.3 passing vmin (--minv) and vmax (--maxv) simultaneously with norm is deprecated. Now vmin/vmax are passed within norm. --- hclust2.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hclust2.py b/hclust2.py index 2bd7bb2..ee154fe 100755 --- a/hclust2.py +++ b/hclust2.py @@ -679,9 +679,7 @@ def shrink_labels( labels, n ): interpolation = 'nearest', aspect='auto', extent = [0, self.nf, 0, self.ns], cmap=cm, - vmin=self.args.minv, - vmax=self.args.maxv, - norm = norm_f( vmin=minv if minv > 0.0 else None, vmax=maxv) + norm = norm_f( vmin=self.args.minv if self.args.minv > 0.0 else None, vmax=self.args.maxv) ) #ax_hm.set_ylim([0,800])