From 1c202bc887eed31670bcfc4494ac850f4c74b12d Mon Sep 17 00:00:00 2001 From: David Stansby Date: Mon, 20 May 2019 22:26:52 +0100 Subject: [PATCH] Un-mask any masked offsets --- lib/matplotlib/collections.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/matplotlib/collections.py b/lib/matplotlib/collections.py index 54d867c394f5..afd54693e4e6 100644 --- a/lib/matplotlib/collections.py +++ b/lib/matplotlib/collections.py @@ -149,6 +149,7 @@ def __init__(self, self._uniform_offsets = None if offsets is not None: offsets = np.asanyarray(offsets, float) + offsets = np.ma.filled(offsets, 0) # Broadcast (2,) -> (1, 2) but nothing else. if offsets.shape == (2,): offsets = offsets[None, :]