From 6cbe189f096a6c6fc541b874a5760eff16feda16 Mon Sep 17 00:00:00 2001
From: Karim Ahmed <karim.ahmed@xfel.eu>
Date: Wed, 2 Dec 2020 09:34:06 +0100
Subject: [PATCH] np.repeat instead of np.array

---
 cal_tools/cal_tools/plotting.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cal_tools/cal_tools/plotting.py b/cal_tools/cal_tools/plotting.py
index 5b6e05422..cc6409686 100644
--- a/cal_tools/cal_tools/plotting.py
+++ b/cal_tools/cal_tools/plotting.py
@@ -275,7 +275,7 @@ def show_processed_modules(dinstance: str, constants: Optional[Dict[str, Any]],
 
     # Set each tile colour individually, extra_geom provides a single color
     # for all tiles.
-    facecolors = np.array(tiles.get_facecolors().tolist() * tile_count)
+    facecolors = np.repeat(tiles.get_facecolor(), tile_count, axis=0)
 
     # Set module name fonts
     for text in ax.texts:
-- 
GitLab