From 387d673d9e391eefa3edeac1f287279d679c8659 Mon Sep 17 00:00:00 2001 From: Nicole Deflaux Date: Sun, 20 Mar 2022 13:40:36 -0700 Subject: [PATCH] Fix cat image parameter. This bug fix will will allow a particular cat image to be chosen. --- catterplot/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catterplot/core.py b/catterplot/core.py index 498ed41..ca3ba87 100644 --- a/catterplot/core.py +++ b/catterplot/core.py @@ -80,7 +80,7 @@ def catter(x, y, s=40, c=None, cat='random', alpha=1, ax=None, cmap=None, cats = np.random.randint(n_cats(), size=len(x)) else: try: - cats = np.ones(len(x)) * cat + cats = [cat] * len(x) except TypeError as e: raise TypeError('`cat` argument needs to be "random", a scalar, or match the input.', e)