From 750afd20c295cdc669da06080f5826276865dd28 Mon Sep 17 00:00:00 2001 From: karnem <mikhail.karnevskiy@desy.de> Date: Fri, 27 Sep 2019 15:43:28 +0200 Subject: [PATCH] Use white instead of nans --- 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 440b4f688..fc38cc93d 100644 --- a/cal_tools/cal_tools/plotting.py +++ b/cal_tools/cal_tools/plotting.py @@ -84,7 +84,7 @@ def plot_badpix_3d(data, definitions, title=None, rebin_fac=2, azim=22.5): d, dims = rebin(od.astype(np.uint32), od.shape[0]//rebin_fac, od.shape[1]//rebin_fac, od.shape[2]) xx, yy, zz = dims voxels = d.astype(np.bool) - colors = np.empty(voxels.shape, dtype=object) + colors = np.full(voxels.shape, '#FFFFFF') cols = definitions for k, c in cols.items(): -- GitLab