Skip to content

Commit 54f7d3e

Browse files
committed
Merge pull request #2238 from efiring/quad_offset_bug
bug: fix unit support for offsets in QuadMesh; closes #560
2 parents 5497d47 + 071158b commit 54f7d3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/collections.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,8 +1724,8 @@ def draw(self, renderer):
17241724

17251725
if self.have_units():
17261726
if len(self._offsets):
1727-
xs = self.convert_xunits(self._offsets[:0])
1728-
ys = self.convert_yunits(self._offsets[:1])
1727+
xs = self.convert_xunits(self._offsets[:, 0])
1728+
ys = self.convert_yunits(self._offsets[:, 1])
17291729
offsets = zip(xs, ys)
17301730

17311731
offsets = np.asarray(offsets, np.float_)

0 commit comments

Comments
 (0)